summaryrefslogtreecommitdiff
path: root/graphics/gtkam/patches
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-08-19 10:53:18 +0000
committerobache <obache@pkgsrc.org>2007-08-19 10:53:18 +0000
commit824bcdf586fcdf7d516856486dbe2e6ba267573e (patch)
tree08ea2812aec78473931760387c5a4bbee3b9b63c /graphics/gtkam/patches
parente1df00002e8aa3bd12809f4245de3da14a1a8295 (diff)
downloadpkgsrc-824bcdf586fcdf7d516856486dbe2e6ba267573e.tar.gz
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
Diffstat (limited to 'graphics/gtkam/patches')
-rw-r--r--graphics/gtkam/patches/patch-aa33
-rw-r--r--graphics/gtkam/patches/patch-ab58
-rw-r--r--graphics/gtkam/patches/patch-ac49
-rw-r--r--graphics/gtkam/patches/patch-ad22
4 files changed, 31 insertions, 131 deletions
diff --git a/graphics/gtkam/patches/patch-aa b/graphics/gtkam/patches/patch-aa
index 2261aec0f1c..2f4c4f81ec9 100644
--- a/graphics/gtkam/patches/patch-aa
+++ b/graphics/gtkam/patches/patch-aa
@@ -1,37 +1,18 @@
-$NetBSD: patch-aa,v 1.6 2007/01/30 16:33:59 joerg Exp $
+$NetBSD: patch-aa,v 1.7 2007/08/19 10:53:19 obache Exp $
---- src/gtkam-chooser.c.orig 2007-01-30 14:45:30.000000000 +0000
+--- src/gtkam-chooser.c.orig 2006-12-14 18:38:12.000000000 +0000
+++ src/gtkam-chooser.c
-@@ -428,18 +428,21 @@ static void
- on_detect_clicked (GtkButton *button, GtkamChooser *chooser)
- {
- GtkWidget *d, *status;
-- CameraList list;
-+ CameraList *list;
+@@ -405,9 +405,12 @@ on_detect_clicked (GtkButton *button, Gt
int result;
const char *name;
-+ result = gp_list_new(&list);
++ result = gp_list_new (&list);
+ if (result < GP_OK)
+ return;
++
status = gtkam_status_new (_("Detecting cameras..."));
gtkam_dialog_add_status (GTKAM_DIALOG (chooser), status);
+- gp_list_new (&list);
result = gp_abilities_list_detect (chooser->priv->al,
-- chooser->priv->il, &list,
-+ chooser->priv->il, list,
+ chooser->priv->il, list,
GTKAM_STATUS (status)->context->context);
- switch (result) {
- case GP_OK:
-- if (!gp_list_count (&list)) {
-+ if (!gp_list_count (list)) {
- d = gtkam_close_new (_("No cameras detected."));
- gtk_window_set_transient_for (GTK_WINDOW (d),
- GTK_WINDOW (chooser));
-@@ -461,6 +464,7 @@ on_detect_clicked (GtkButton *button, Gt
- gtk_widget_show (d);
- break;
- }
-+ gp_list_free(list);
- gtk_object_destroy (GTK_OBJECT (status));
- }
-
diff --git a/graphics/gtkam/patches/patch-ab b/graphics/gtkam/patches/patch-ab
index 78efe7d04b3..ed74eeb3d18 100644
--- a/graphics/gtkam/patches/patch-ab
+++ b/graphics/gtkam/patches/patch-ab
@@ -1,71 +1,43 @@
-$NetBSD: patch-ab,v 1.3 2007/01/30 16:33:59 joerg Exp $
+$NetBSD: patch-ab,v 1.4 2007/08/19 10:53:19 obache Exp $
---- src/gtkam-delete.c.orig 2007-01-30 14:51:30.000000000 +0000
+--- src/gtkam-delete.c.orig 2006-12-14 18:38:12.000000000 +0000
+++ src/gtkam-delete.c
-@@ -170,16 +170,25 @@ delete_all (GtkamDelete *delete, GtkamCa
- {
- GtkWidget *d, *s;
- int result, r1, r2;
-- CameraList l1, l2;
-+ CameraList *l1, *l2;
- const char *name;
+@@ -178,11 +178,13 @@ delete_all (GtkamDelete *delete, GtkamCa
GtkamDeleteAllDeletedData add;
GtkamDeleteFileDeletedData fdd;
-+ result = gp_list_new(&l1);
++ result = gp_list_new (&l1);
+ if (result < GP_OK)
+ return FALSE;
-+ result = gp_list_new(&l2);
-+ if (result < GP_OK) {
-+ gp_list_free(l1);
-+ return FALSE;
-+ }
-+
s = gtkam_status_new (_("Deleting all files in '%s'..."), folder);
gtk_widget_show (s);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (delete)->vbox), s,
FALSE, FALSE, 0);
-- r1 = gp_camera_folder_list_files (camera->camera, folder, &l1, NULL);
-+ r1 = gp_camera_folder_list_files (camera->camera, folder, l1, NULL);
+- gp_list_new (&l1);
+ r1 = gp_camera_folder_list_files (camera->camera, folder, l1, NULL);
result = gp_camera_folder_delete_all (camera->camera, folder,
GTKAM_STATUS (s)->context->context);
- switch (result) {
-@@ -189,9 +198,13 @@ delete_all (GtkamDelete *delete, GtkamCa
+@@ -193,9 +195,11 @@ delete_all (GtkamDelete *delete, GtkamCa
g_signal_emit (G_OBJECT (delete),
signals[ALL_DELETED], 0, &add);
gtk_object_destroy (GTK_OBJECT (s));
-+ gp_list_free(l1);
-+ gp_list_free(l2);
++ gp_list_unref(l1);
return (TRUE);
case GP_ERROR_CANCEL:
gtk_object_destroy (GTK_OBJECT (s));
-+ gp_list_free(l1);
-+ gp_list_free(l2);
++ gp_list_unref(l1);
return (TRUE);
default:
d = gtkam_error_new (result, GTKAM_STATUS (s)->context,
-@@ -202,11 +215,11 @@ delete_all (GtkamDelete *delete, GtkamCa
-
- /* See what files have been deleted */
- r2 = gp_camera_folder_list_files (camera->camera, folder,
-- &l2, NULL);
-+ l2, NULL);
- if ((r1 == GP_OK) && (r2 == GP_OK)) {
-- for (r1 = 0; r1 < gp_list_count (&l1); r1++) {
-- gp_list_get_name (&l1, r1, &name);
-- if (gp_list_lookup_name (&l2, name) >= 0) {
-+ for (r1 = 0; r1 < gp_list_count (l1); r1++) {
-+ gp_list_get_name (l1, r1, &name);
-+ if (gp_list_lookup_name (l2, name) >= 0) {
- fdd.camera = camera;
- fdd.folder = folder;
- fdd.name = name;
-@@ -216,6 +229,8 @@ delete_all (GtkamDelete *delete, GtkamCa
+@@ -221,10 +225,10 @@ delete_all (GtkamDelete *delete, GtkamCa
}
}
}
-+ gp_list_free(l1);
-+ gp_list_free(l2);
++ gp_list_unref (l1);
+ gp_list_unref (l2);
return (FALSE);
}
+- gp_list_unref (l1);
}
+
+ static gboolean
diff --git a/graphics/gtkam/patches/patch-ac b/graphics/gtkam/patches/patch-ac
index 14ea64ead19..6b21a048b93 100644
--- a/graphics/gtkam/patches/patch-ac
+++ b/graphics/gtkam/patches/patch-ac
@@ -1,17 +1,8 @@
-$NetBSD: patch-ac,v 1.1 2007/01/30 16:33:59 joerg Exp $
+$NetBSD: patch-ac,v 1.2 2007/08/19 10:53:19 obache Exp $
---- src/gtkam-list.c.orig 2007-01-30 14:54:54.000000000 +0000
+--- src/gtkam-list.c.orig 2006-12-14 18:38:12.000000000 +0000
+++ src/gtkam-list.c
-@@ -984,7 +984,7 @@ gtkam_list_add_folder (GtkamList *list,
- const gchar *folder)
- {
- GtkWidget *dialog, *s;
-- CameraList flist;
-+ CameraList *flist;
- int result;
- const char *name;
- gint i;
-@@ -992,9 +992,13 @@ gtkam_list_add_folder (GtkamList *list,
+@@ -966,6 +966,10 @@ gtkam_list_add_folder (GtkamList *list,
g_return_if_fail (GTKAM_IS_LIST (list));
@@ -21,42 +12,20 @@ $NetBSD: patch-ac,v 1.1 2007/01/30 16:33:59 joerg Exp $
+
s = gtkam_status_new (_("Listing files in folder '%s'..."), folder);
g_signal_emit (G_OBJECT (list), signals[NEW_STATUS], 0, s);
-- result = gp_camera_folder_list_files (camera->camera, folder, &flist,
-+ result = gp_camera_folder_list_files (camera->camera, folder, flist,
- GTKAM_STATUS (s)->context->context);
- switch (result) {
- case GP_OK:
-@@ -1002,6 +1006,7 @@ gtkam_list_add_folder (GtkamList *list,
- case GP_ERROR_CANCEL:
+ gp_list_new (&flist);
+@@ -978,6 +982,7 @@ gtkam_list_add_folder (GtkamList *list,
if (camera->multi)
gp_camera_exit (camera->camera, NULL);
-+ gp_list_free(flist);
gtk_object_destroy (GTK_OBJECT (s));
++ gp_list_unref(flist);
return;
default:
-@@ -1010,20 +1015,23 @@ gtkam_list_add_folder (GtkamList *list,
- dialog = gtkam_error_new (result, GTKAM_STATUS (s)->context,
- NULL, _("Could not get file list for folder "
+ if (camera->multi)
+@@ -987,6 +992,7 @@ gtkam_list_add_folder (GtkamList *list,
"'%s'"), folder);
-+ gp_list_free(flist);
gtk_widget_show (dialog);
gtk_object_destroy (GTK_OBJECT (s));
++ gp_list_unref(flist);
return;
}
gtk_object_destroy (GTK_OBJECT (s));
-
-- for (i = 0; i < gp_list_count (&flist); i++) {
-- gp_list_get_name (&flist, i, &name);
-+ for (i = 0; i < gp_list_count (flist); i++) {
-+ gp_list_get_name (flist, i, &name);
- gtk_list_store_append (list->priv->store, &iter);
- gtk_list_store_set (list->priv->store, &iter,
- NAME_COLUMN, name, FOLDER_COLUMN, folder,
- CAMERA_COLUMN, camera, IS_EDITABLE_COLUMN, TRUE, -1);
- }
-
-+ gp_list_free(flist);
-+
- if (camera->multi)
- gp_camera_exit (camera->camera, NULL);
-
diff --git a/graphics/gtkam/patches/patch-ad b/graphics/gtkam/patches/patch-ad
deleted file mode 100644
index 16ec5633d7c..00000000000
--- a/graphics/gtkam/patches/patch-ad
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2007/01/30 16:33:59 joerg Exp $
-
---- help/C/gtkam.xml.orig 2007-01-30 14:59:21.000000000 +0000
-+++ help/C/gtkam.xml
-@@ -183,7 +183,7 @@
- then press <keycap>Return</keycap>:</para>
- <para>
- <command>gtkam</command>
-- <!--FIXME comand line --switches -->
-+ <!--FIXME comand line switches -->
- </para>
- </listitem>
- </varlistentry>
-@@ -203,7 +203,7 @@
- fileref="figures/gtkam_start_window.png" format="PNG"/>
- </imageobject>
- <textobject>
-- <phrase>The &app; main window. On the left is the camera tree. The file list is on the right.
-+ <phrase>The &app; main window. On the left is the camera tree. The file list is on the right.</phrase>
- </textobject>
- </mediaobject>
- </screenshot>