pkgsrc/graphics/gtkam/patches/patch-ac
obache 824bcdf586 Update gtkam to 0.1.14.
Based on patch provided in PR 36317.

gtkam 0.1.14

* fix make distcheck
* misc bug fixes.
* always show capture/capture preview menu.
* updated various translations
* changed for some important fixes in libgphoto2
2007-08-19 10:53:18 +00:00

31 lines
940 B
Text

$NetBSD: patch-ac,v 1.2 2007/08/19 10:53:19 obache Exp $
--- src/gtkam-list.c.orig 2006-12-14 18:38:12.000000000 +0000
+++ src/gtkam-list.c
@@ -966,6 +966,10 @@ gtkam_list_add_folder (GtkamList *list,
g_return_if_fail (GTKAM_IS_LIST (list));
+ result = gp_list_new(&flist);
+ if (result < GP_OK)
+ return;
+
s = gtkam_status_new (_("Listing files in folder '%s'..."), folder);
g_signal_emit (G_OBJECT (list), signals[NEW_STATUS], 0, s);
gp_list_new (&flist);
@@ -978,6 +982,7 @@ gtkam_list_add_folder (GtkamList *list,
if (camera->multi)
gp_camera_exit (camera->camera, NULL);
gtk_object_destroy (GTK_OBJECT (s));
+ gp_list_unref(flist);
return;
default:
if (camera->multi)
@@ -987,6 +992,7 @@ gtkam_list_add_folder (GtkamList *list,
"'%s'"), folder);
gtk_widget_show (dialog);
gtk_object_destroy (GTK_OBJECT (s));
+ gp_list_unref(flist);
return;
}
gtk_object_destroy (GTK_OBJECT (s));