2004-08-21 [paul] 0.9.12cvs66.4
authorPaul Mangan <paul@claws-mail.org>
Sat, 21 Aug 2004 09:28:36 +0000 (09:28 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sat, 21 Aug 2004 09:28:36 +0000 (09:28 +0000)
* src/mainwindow.c
* src/messageview.c
* src/gtk/menu.c
* src/plugins/spamassassin/spamassassin_gtk.c
remove some deprecated gtk1 functions

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/gtk/menu.c
src/mainwindow.c
src/messageview.c
src/plugins/spamassassin/spamassassin_gtk.c

index 17d4318..3dde2d2 100644 (file)
@@ -1,3 +1,12 @@
+2004-08-21 [paul]      0.9.12cvs66.4
+
+       * src/mainwindow.c
+       * src/messageview.c
+       * src/gtk/menu.c
+       * src/plugins/spamassassin/spamassassin_gtk.c
+               remove some deprecated gtk1 functions
+
+
 2004-08-21 [colin]     0.9.12cvs66.3
 
        * src/compose.c
index 0287d5e..6a6f554 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.65.2.10 -r 1.65.2.11 src/codeconv.c; ) > 0.9.12cvs66.1.patchset
 ( cvs diff -u -r 1.105.2.7 -r 1.105.2.8 src/prefs_account.c; ) > 0.9.12cvs66.2.patchset
 ( cvs diff -u -r 1.382.2.40 -r 1.382.2.41 src/compose.c; cvs diff -u -r 1.65.2.11 -r 1.65.2.12 src/codeconv.c; ) > 0.9.12cvs66.3.patchset
+( cvs diff -u -r 1.274.2.17 -r 1.274.2.18 src/mainwindow.c; cvs diff -u -r 1.94.2.29 -r 1.94.2.30 src/messageview.c; cvs diff -u -r 1.5.2.9 -r 1.5.2.10 src/gtk/menu.c; cvs diff -u -r 1.23.2.4 -r 1.23.2.5 src/plugins/spamassassin/spamassassin_gtk.c; ) > 0.9.12cvs66.4.patchset
index 068c115..ce432a4 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=66
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.3
+EXTRA_GTK2_VERSION=.4
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
index 19b13d5..d5314bf 100644 (file)
@@ -314,12 +314,12 @@ void menu_select_by_data(GtkMenu *menu, gpointer data)
        
        g_return_if_fail(menu != NULL);
 
-       children = gtk_container_children(GTK_CONTAINER(menu));
+       children = gtk_container_get_children(GTK_CONTAINER(menu));
 
        for (cur = children; cur != NULL; cur = g_list_next(cur)) {
-               GtkObject *child = G_OBJECT(cur->data);
+               GObject *child = G_OBJECT(cur->data);
 
-               if (gtk_object_get_user_data(child) == data) {
+               if (g_object_get_data(child, MENU_VAL_ID) == data) {
                        select_item = GTK_WIDGET(child);
                }
        }
index 3d100b5..bae439f 100644 (file)
@@ -2632,7 +2632,7 @@ static void hide_read_messages (MainWindow *mainwin, guint action,
                                GtkWidget *widget)
 {
        if (!mainwin->summaryview->folder_item
-           || gtk_object_get_data(GTK_OBJECT(widget), "dont_toggle"))
+           || g_object_get_data(G_OBJECT(widget), "dont_toggle"))
                return;
        summary_toggle_show_read_messages(mainwin->summaryview);
 }
index a27c1a7..5ff5894 100644 (file)
@@ -1152,7 +1152,7 @@ static void partial_recv_unmark_clicked(NoticeView *noticeview,
 
 static void select_account_cb(GtkWidget *w, gpointer data)
 {
-       *(gint*)data = GPOINTER_TO_INT(gtk_object_get_user_data(GTK_OBJECT(w)));
+       *(gint*)data = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), MENU_VAL_ID));
 }
        
 static PrefsAccount *select_account_from_list(GList *ac_list)
index cfd0293..9416003 100644 (file)
@@ -36,6 +36,7 @@
 #include "prefs_gtk.h"
 #include "foldersel.h"
 #include "spamassassin.h"
+#include "menu.h"
 
 struct SpamAssassinPage
 {
@@ -119,7 +120,7 @@ static void transport_sel_cb(GtkMenuItem *menuitem, gpointer data)
        struct SpamAssassinPage *page = (struct SpamAssassinPage *) data;
        struct Transport *transport;
 
-       transport = (struct Transport *) gtk_object_get_user_data(GTK_OBJECT(menuitem));
+       transport = (struct Transport *) g_object_get_data(G_OBJECT(menuitem), MENU_VAL_ID);
        show_transport(page, transport);
 }
 
@@ -376,9 +377,9 @@ static void spamassassin_create_widget_func(PrefsPage * _page,
                GtkWidget *menuitem;
 
                menuitem = gtk_menu_item_new_with_label(gettext(transports[i].name));
-               gtk_object_set_user_data(GTK_OBJECT(menuitem), &transports[i]);
-               gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
-                                  GTK_SIGNAL_FUNC(transport_sel_cb), page);
+               g_object_set_data(G_OBJECT(menuitem), MENU_VAL_ID, &transports[i]);
+               g_signal_connect(G_OBJECT(menuitem), "activate",
+                                G_CALLBACK(transport_sel_cb), page);
                gtk_widget_show(menuitem);
                gtk_menu_append(GTK_MENU(transport_menu), menuitem);