patches/gtkam-02-fixgexif.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 15536 2f72ebe6def2
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8871
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
diff -ur gtkam-0.1.11.after-patch-2/gexif-0.5/Makefile.am gtkam-0.1.11/gexif-0.5/Makefile.am
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
--- gtkam-0.1.11.after-patch-2/gexif-0.5/Makefile.am	2004-06-17 12:11:03.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
+++ gtkam-0.1.11/gexif-0.5/Makefile.am	2004-06-17 12:11:30.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
@@ -1,5 +1,10 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
+NULL =
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
 SUBDIRS = intl m4  libjpeg gexif po
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
 ACLOCAL_AMFLAGS = -I m4
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
-EXTRA_DIST = config.rpath mkinstalldirs
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
+EXTRA_DIST = config.rpath mkinstalldirs \
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
+	intltool-extract.in \
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
+	intltool-merge.in \
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
+	intltool-update.in \
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
+	$(NULL)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
diff -ur gtkam-0.1.11.after-patch-2/gexif-0.5/configure.in gtkam-0.1.11/gexif-0.5/configure.in
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
--- gtkam-0.1.11.after-patch-2/gexif-0.5/configure.in	2004-06-17 12:11:03.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
+++ gtkam-0.1.11/gexif-0.5/configure.in	2004-06-17 12:11:34.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
@@ -9,8 +9,15 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
 dnl ---------------------------------------------------------------------------
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
 dnl i18n support
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
 dnl ---------------------------------------------------------------------------
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23
+GETTEXT_PACKAGE=gexif
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    24
+AC_SUBST(GETTEXT_PACKAGE)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    25
+AC_PROG_INTLTOOL
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    26
 ALL_LINGUAS="de es fr"
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    27
-AM_GNU_GETTEXT
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    28
+AM_GLIB_GNU_GETTEXT
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    29
+USE_INCLUDED_LIBINTL=no
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    30
+AC_SUBST(USE_INCLUDED_LIBINTL)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    31
+BUILD_INCLUDED_LIBINTL=no
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    32
+AC_SUBST(BUILD_INCLUDED_LIBINTL)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    33
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    34
 dnl ---------------------------------------------------------------------------
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    35
 dnl libexif
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    36
@@ -26,7 +33,13 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    37
 AC_SUBST(GEXIF_LIBS)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    38
 AC_SUBST(GEXIF_CFLAGS)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    39
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    40
-CFLAGS="$CFLAGS -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    41
+dnl Only use -Wall if we have gcc
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    42
+if test "x$GCC" = "xyes"; then
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    43
+  if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    44
+    CFLAGS="$CFLAGS -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    45
+  fi
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    46
+fi
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    47
+
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    48
 AC_SUBST(CFLAGS)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    49
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    50
 AC_OUTPUT([ intl/Makefile po/Makefile.in m4/Makefile 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    51
diff -ur gtkam-0.1.11.after-patch-2/gexif-0.5/gexif/gexif-main.c gtkam-0.1.11/gexif-0.5/gexif/gexif-main.c
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    52
--- gtkam-0.1.11.after-patch-2/gexif-0.5/gexif/gexif-main.c	2004-06-17 12:11:03.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    53
+++ gtkam-0.1.11/gexif-0.5/gexif/gexif-main.c	2004-06-17 12:11:30.000000000 -0700
9949
061a73621f11 2007-05-28 Damien Carbery <[email protected]>
dcarbery
parents: 8875
diff changeset
    54
@@ -34,7 +34,10 @@
8875
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    55
 #include <gtk/gtksignal.h>
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    56
 #include <gtk/gtkfilesel.h>
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    57
 #include <gtk/gtkbutton.h>
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    58
+#undef GTK_DISABLE_DEPRECATED
9949
061a73621f11 2007-05-28 Damien Carbery <[email protected]>
dcarbery
parents: 8875
diff changeset
    59
+#include <gtk/gtkfilesel.h>
8875
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    60
 #include <gtk/gtkitemfactory.h>
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    61
+#define GTK_DISABLE_DEPRECATED
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    62
 #include <gtk/gtkstock.h>
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    63
 
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
    64
 #include <libjpeg/jpeg-data.h>
8871
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    65
@@ -281,7 +281,7 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    66
 action_about (gpointer callback_data, guint callback_action,
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    67
 	      GtkWidget *widget)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    68
 {
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    69
-	g_warning ("Implement!");
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    70
+	g_warning (_("Implement!"));
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    71
 }
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    72
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    73
 static void
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    74
@@ -303,19 +303,25 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    75
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    76
 static GtkItemFactoryEntry mi[] =
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    77
 {
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    78
-	{"/_File", NULL, 0, 0, "<Branch>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    79
-	{"/File/_Open...", NULL, action_open, 0, "<StockItem>", GTK_STOCK_OPEN},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    80
-	{"/File/_Save", NULL, action_save, 0, "<StockItem>", GTK_STOCK_SAVE},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    81
-	{"/File/Save _As...", NULL, action_save_as, 0, "<StockItem>",
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    82
+	{N_("/_File"), NULL, 0, 0, "<Branch>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    83
+	{N_("/File/_Open..."), NULL, action_open, 0, "<StockItem>", GTK_STOCK_OPEN},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    84
+	{N_("/File/_Save"), NULL, action_save, 0, "<StockItem>", GTK_STOCK_SAVE},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    85
+	{N_("/File/Save _As..."), NULL, action_save_as, 0, "<StockItem>",
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    86
 							GTK_STOCK_SAVE_AS},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    87
-	{"/File/sep1", NULL, 0, 0, "<Separator>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    88
-	{"/File/E_xit", NULL, action_exit, 0, "<StockItem>", GTK_STOCK_QUIT},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    89
-	{"/_View", NULL, 0, 0, "<Branch>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    90
-	{"/View/_Thumbnail", NULL, action_thumbnail, 0, NULL, NULL},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    91
-	{"/_Help", NULL, 0, 0, "<Branch>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    92
-	{"/Help/About", NULL, action_about, 0, NULL, NULL}
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    93
+	{N_("/File/sep1"), NULL, 0, 0, "<Separator>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    94
+	{N_("/File/E_xit"), NULL, action_exit, 0, "<StockItem>", GTK_STOCK_QUIT},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    95
+	{N_("/_View"), NULL, 0, 0, "<Branch>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    96
+	{N_("/View/_Thumbnail"), NULL, action_thumbnail, 0, NULL, NULL},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    97
+	{N_("/_Help"), NULL, 0, 0, "<Branch>"},
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    98
+	{N_("/Help/About"), NULL, action_about, 0, NULL, NULL}
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    99
 };
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   100
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   101
+static gchar *
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   102
+translate_func (const gchar *path, gpointer data)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   103
+{
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   104
+	return g_strdup (_(path));
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   105
+}
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   106
+
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   107
 GtkWidget *
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   108
 gexif_main_new (void)
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   109
 {
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   110
@@ -337,6 +343,10 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   111
 	ag = gtk_accel_group_new ();
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   112
 	gtk_window_add_accel_group (GTK_WINDOW (m), ag);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   113
 	gif = gtk_item_factory_new (GTK_TYPE_MENU_BAR, "<main>", ag);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   114
+#ifdef ENABLE_NLS
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   115
+	gtk_item_factory_set_translate_func (GTK_ITEM_FACTORY (gif),
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   116
+					translate_func, NULL, NULL);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   117
+#endif
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   118
 	g_object_set_data_full (G_OBJECT (m), "<main>", gif,
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   119
 				(GDestroyNotify) g_object_unref);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   120
 	gtk_item_factory_create_items (gif, G_N_ELEMENTS (mi), mi, m);
8875
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   121
diff -ur gtkam-0.1.11.after-patch-2/gexif-0.5/gexif/gexif-thumbnail.c gtkam-0.1.11/gexif-0.5/gexif/gexif-thumbnail.c
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   122
--- gtkam-0.1.11.after-patch-2/gexif-0.5/gexif/gexif-thumbnail.c.orig	2006-12-20 17:09:42.125517000 +0000
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   123
+++ gtkam-0.1.11.after-patch-2/gexif-0.5/gexif/gexif-thumbnail.c	2006-12-20 17:12:40.173757000 +0000
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   124
@@ -54,6 +54,7 @@
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   125
 
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   126
 struct _GExifThumbnailPrivate
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   127
 {
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   128
+	char x;  /* Dummy member for building on Solaris. */
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   129
 };
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   130
 
1eb9d111ca7b 2006-12-20 Damien Carbery <[email protected]>
dcarbery
parents: 8871
diff changeset
   131
 #define PARENT_TYPE GTK_TYPE_DIALOG
8871
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   132
diff -ur gtkam-0.1.11.after-patch-2/gexif-0.5/gexif/gexif.c gtkam-0.1.11/gexif-0.5/gexif/gexif.c
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   133
--- gtkam-0.1.11.after-patch-2/gexif-0.5/gexif/gexif.c	2004-06-17 12:11:03.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   134
+++ gtkam-0.1.11/gexif-0.5/gexif/gexif.c	2004-06-17 12:11:30.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   135
@@ -50,6 +50,7 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   136
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   137
 	gtk_set_locale ();
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   138
 	bindtextdomain (PACKAGE, GEXIF_LOCALEDIR);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   139
+	bind_textdomain_codeset (PACKAGE, "UTF-8");
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   140
 	textdomain (PACKAGE);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   141
 
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   142
 	gtk_init (&argc, &argv);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   143
diff -ur gtkam-0.1.11.after-patch-2/src/gtkam-tree.c gtkam-0.1.11/src/gtkam-tree.c
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   144
--- gtkam-0.1.11.after-patch-2/src/gtkam-tree.c	2004-06-17 12:11:03.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   145
+++ gtkam-0.1.11/src/gtkam-tree.c	2004-06-17 12:11:18.000000000 -0700
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   146
@@ -1143,9 +1143,10 @@
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   147
 		    strcmp (model, "Directory Browse")) {
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   148
 	                p = gp_port_info_list_lookup_path (il, port);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   149
         	        if (p < 0) {
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   150
-                	        g_warning ("Could not find '%s' in port "
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   151
-					"info list (%s)!", port,
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   152
-					gp_result_as_string (p));
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   153
+                	        g_warning (_("Could not find '%s' in port "
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   154
+					"info list (%s)!"),
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   155
+					g_locale_to_utf8 (port, -1, NULL, NULL, NULL),
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   156
+					g_locale_to_utf8 (gp_result_as_string (p), -1, NULL, NULL, NULL));
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   157
 				gp_camera_unref (camera);
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   158
 				continue;
55ce37a488bc 2006-12-19 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   159
 			}
12631
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   160
--- gtkam-0.1.14/gexif-0.5/gexif/gexif-main.h-orig	2008-06-10 19:12:02.837245000 -0500
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   161
+++ gtkam-0.1.14/gexif-0.5/gexif/gexif-main.h	2008-06-10 19:12:21.670740000 -0500
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   162
@@ -21,7 +21,9 @@
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   163
 #ifndef __GEXIF_MAIN_H__
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   164
 #define __GEXIF_MAIN_H__
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   165
 
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   166
+#undef GTK_DISABLE_DEPRECATED
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   167
 #include <gtk/gtkwindow.h>
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   168
+#define GTK_DISABLE_DEPRECATED
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   169
 
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   170
 #define GEXIF_TYPE_MAIN     (gexif_main_get_type())
0e54bb8f4c23 2008-06-10 Brian Cameron <[email protected]>
yippi
parents: 9949
diff changeset
   171
 #define GEXIF_MAIN(o)       (G_TYPE_CHECK_INSTANCE_CAST((o),GEXIF_TYPE_MAIN,GExifMain))