2005-10-10 [colin] 1.9.15cvs27
authorColin Leroy <colin@colino.net>
Mon, 10 Oct 2005 16:50:52 +0000 (16:50 +0000)
committerColin Leroy <colin@colino.net>
Mon, 10 Oct 2005 16:50:52 +0000 (16:50 +0000)
* src/export.c
* src/import.c
Fix compile on gtk 2.4. Patch by wwp

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/export.c
src/import.c

index 621d2c3ba0a5317f76ec982bb54868878aadd80a..862609b46da481476b2684c1ebda7137089fd204 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-10 [colin]     1.9.15cvs27
+
+       * src/export.c
+       * src/import.c
+               Fix compile on gtk 2.4. Patch by wwp
+
 2005-10-09 [colin]     1.9.15cvs26
 
        * src/mainwindow.c
 2005-10-09 [colin]     1.9.15cvs26
 
        * src/mainwindow.c
index 529833b2c86af73255fc009e28dd293d1058b12c..2b0c028d9a59a4cd724bc93503127ae60b97bf13 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.13 -r 1.1.2.14 src/wizard.c;  ) > 1.9.15cvs24.patchset
 ( cvs diff -u -r 1.382.2.180 -r 1.382.2.181 src/compose.c;  cvs diff -u -r 1.50.2.14 -r 1.50.2.15 src/compose.h;  ) > 1.9.15cvs25.patchset
 ( cvs diff -u -r 1.274.2.70 -r 1.274.2.71 src/mainwindow.c;  cvs diff -u -r 1.94.2.66 -r 1.94.2.67 src/messageview.c;  cvs diff -u -r 1.395.2.133 -r 1.395.2.134 src/summaryview.c;  ) > 1.9.15cvs26.patchset
 ( cvs diff -u -r 1.1.2.13 -r 1.1.2.14 src/wizard.c;  ) > 1.9.15cvs24.patchset
 ( cvs diff -u -r 1.382.2.180 -r 1.382.2.181 src/compose.c;  cvs diff -u -r 1.50.2.14 -r 1.50.2.15 src/compose.h;  ) > 1.9.15cvs25.patchset
 ( cvs diff -u -r 1.274.2.70 -r 1.274.2.71 src/mainwindow.c;  cvs diff -u -r 1.94.2.66 -r 1.94.2.67 src/messageview.c;  cvs diff -u -r 1.395.2.133 -r 1.395.2.134 src/summaryview.c;  ) > 1.9.15cvs26.patchset
+( cvs diff -u -r 1.8.2.12 -r 1.8.2.13 src/export.c;  cvs diff -u -r 1.13.2.11 -r 1.13.2.12 src/import.c;  ) > 1.9.15cvs27.patchset
index 1afdef21348d591f05259b4277080a43e55085d0..9da0956fbc4231f2ee5463b0855d8ed121e236fa 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=15
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=15
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=26
+EXTRA_VERSION=27
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 6132c0a1851f94a093994bf6f62a8b13c48307f5..2031103baa9fd6e002e1903efb03233deb88968f 100644 (file)
@@ -187,18 +187,25 @@ static void export_create(void)
        gtk_table_attach(GTK_TABLE(table), file_entry, 1, 2, 1, 2,
                         GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0);
 
        gtk_table_attach(GTK_TABLE(table), file_entry, 1, 2, 1, 2,
                         GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0);
 
-       /* XXX GTK 2.6: GTK_STOCK_DIRECTORY */
+#if GTK_CHECK_VERSION(2, 6, 0)
        src_button = gtk_button_new_with_mnemonic(_("_Browse"));
        gtk_button_set_image((GtkButton*)src_button,
        src_button = gtk_button_new_with_mnemonic(_("_Browse"));
        gtk_button_set_image((GtkButton*)src_button,
-               gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
+               gtk_image_new_from_stock(GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_BUTTON));
+#else
+       src_button = gtk_button_new_from_stock(GTK_STOCK_OPEN);
+#endif
        gtk_table_attach(GTK_TABLE(table), src_button, 2, 3, 0, 1,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(src_button), "clicked",
                         G_CALLBACK(export_srcsel_cb), NULL);
 
        gtk_table_attach(GTK_TABLE(table), src_button, 2, 3, 0, 1,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(src_button), "clicked",
                         G_CALLBACK(export_srcsel_cb), NULL);
 
+#if GTK_CHECK_VERSION(2, 6, 0)
        file_button = gtk_button_new_with_mnemonic(_("B_rowse"));
        gtk_button_set_image((GtkButton*)file_button,
                gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
        file_button = gtk_button_new_with_mnemonic(_("B_rowse"));
        gtk_button_set_image((GtkButton*)file_button,
                gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
+#else
+       file_button = gtk_button_new_from_stock(GTK_STOCK_OPEN);
+#endif
        gtk_table_attach(GTK_TABLE(table), file_button, 2, 3, 1, 2,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(file_button), "clicked",
        gtk_table_attach(GTK_TABLE(table), file_button, 2, 3, 1, 2,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(file_button), "clicked",
index d055feee1095ecfc8221a2bd9fa6fbaf88660cf6..2e66423b97271b19b42e9c124c6ce3085f1dac53 100644 (file)
@@ -193,18 +193,25 @@ static void import_create(void)
        gtk_table_attach(GTK_TABLE(table), dest_entry, 1, 2, 1, 2,
                         GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0);
 
        gtk_table_attach(GTK_TABLE(table), dest_entry, 1, 2, 1, 2,
                         GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0);
 
+#if GTK_CHECK_VERSION(2, 6, 0)
        file_button = gtk_button_new_with_mnemonic(_("_Browse"));
        gtk_button_set_image((GtkButton*)file_button,
                gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
        file_button = gtk_button_new_with_mnemonic(_("_Browse"));
        gtk_button_set_image((GtkButton*)file_button,
                gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
+#else
+       file_button = gtk_button_new_from_stock(GTK_STOCK_OPEN);
+#endif
        gtk_table_attach(GTK_TABLE(table), file_button, 2, 3, 0, 1,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(file_button), "clicked",
                         G_CALLBACK(import_filesel_cb), NULL);
 
        gtk_table_attach(GTK_TABLE(table), file_button, 2, 3, 0, 1,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(file_button), "clicked",
                         G_CALLBACK(import_filesel_cb), NULL);
 
-       /* XXX GTK 2.6: GTK_STOCK_DIRECTORY */
+#if GTK_CHECK_VERSION(2, 6, 0)
        dest_button = gtk_button_new_with_mnemonic(_("B_rowse"));
        gtk_button_set_image((GtkButton*)dest_button,
        dest_button = gtk_button_new_with_mnemonic(_("B_rowse"));
        gtk_button_set_image((GtkButton*)dest_button,
-               gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
+               gtk_image_new_from_stock(GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_BUTTON));
+#else
+       dest_button = gtk_button_new_from_stock(GTK_STOCK_OPEN);
+#endif
        gtk_table_attach(GTK_TABLE(table), dest_button, 2, 3, 1, 2,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(dest_button), "clicked",
        gtk_table_attach(GTK_TABLE(table), dest_button, 2, 3, 1, 2,
                         0, 0, 0, 0);
        g_signal_connect(G_OBJECT(dest_button), "clicked",