diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-07-28 15:30:16 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-28 15:30:16 +0000 |
commit | 6f0625cee673eb50db1948039a471965c783bd44 (patch) | |
tree | 6adaa2ebef088fc0a8587a1362cc1df5678dd85e | |
parent | f0576244a20ab3494fc37e45ef939a8ab7ecd3c5 (diff) | |
download | gtk+-6f0625cee673eb50db1948039a471965c783bd44.tar.gz |
Warning fixes.
2004-07-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c: Warning fixes.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 2 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 2 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 2 | ||||
-rw-r--r-- | gtk/gtkuimanager.c | 44 |
5 files changed, 30 insertions, 22 deletions
@@ -1,5 +1,7 @@ 2004-07-28 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkuimanager.c: Warning fixes. + * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix prototype mismatch. (#148589, Nicolas Deves) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index baffafa5ac..cf0d93170d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,7 @@ 2004-07-28 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkuimanager.c: Warning fixes. + * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix prototype mismatch. (#148589, Nicolas Deves) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index baffafa5ac..cf0d93170d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,7 @@ 2004-07-28 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkuimanager.c: Warning fixes. + * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix prototype mismatch. (#148589, Nicolas Deves) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index baffafa5ac..cf0d93170d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,7 @@ 2004-07-28 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkuimanager.c: Warning fixes. + * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix prototype mismatch. (#148589, Nicolas Deves) diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c index db582444db..5fbf7b707c 100644 --- a/gtk/gtkuimanager.c +++ b/gtk/gtkuimanager.c @@ -2129,7 +2129,7 @@ update_node (GtkUIManager *self, { info->proxy = gtk_menu_bar_new (); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); gtk_widget_set_name (info->proxy, info->name); gtk_widget_show (info->proxy); g_signal_emit (self, ui_manager_signals[ADD_WIDGET], 0, info->proxy); @@ -2140,7 +2140,7 @@ update_node (GtkUIManager *self, { info->proxy = gtk_menu_new (); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); } gtk_widget_set_name (info->proxy, info->name); break; @@ -2178,7 +2178,7 @@ update_node (GtkUIManager *self, info->proxy = gtk_action_create_menu_item (action); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); menu = gtk_menu_new (); gtk_widget_set_name (info->proxy, info->name); gtk_widget_set_name (menu, info->name); @@ -2224,7 +2224,7 @@ update_node (GtkUIManager *self, { info->proxy = gtk_toolbar_new (); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); gtk_widget_set_name (info->proxy, info->name); gtk_widget_show (info->proxy); g_signal_emit (self, ui_manager_signals[ADD_WIDGET], 0, info->proxy); @@ -2259,7 +2259,7 @@ update_node (GtkUIManager *self, { info->proxy = gtk_separator_menu_item_new (); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); g_object_set_data (G_OBJECT (info->proxy), "gtk-separator-mode", GINT_TO_POINTER (SEPARATOR_MODE_HIDDEN)); @@ -2269,7 +2269,7 @@ update_node (GtkUIManager *self, info->extra = gtk_separator_menu_item_new (); g_object_ref (info->extra); - gtk_object_sink (info->extra); + gtk_object_sink (GTK_OBJECT (info->extra)); g_object_set_data (G_OBJECT (info->extra), "gtk-separator-mode", GINT_TO_POINTER (SEPARATOR_MODE_HIDDEN)); @@ -2312,7 +2312,7 @@ update_node (GtkUIManager *self, gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, pos); info->proxy = GTK_WIDGET (item); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); g_object_set_data (G_OBJECT (info->proxy), "gtk-separator-mode", GINT_TO_POINTER (SEPARATOR_MODE_HIDDEN)); @@ -2322,7 +2322,7 @@ update_node (GtkUIManager *self, gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, pos+1); info->extra = GTK_WIDGET (item); g_object_ref (info->extra); - gtk_object_sink (info->extra); + gtk_object_sink (GTK_OBJECT (info->extra)); g_object_set_data (G_OBJECT (info->extra), "gtk-separator-mode", GINT_TO_POINTER (SEPARATOR_MODE_HIDDEN)); @@ -2354,7 +2354,7 @@ update_node (GtkUIManager *self, { info->proxy = gtk_action_create_menu_item (action); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); gtk_widget_set_name (info->proxy, info->name); gtk_menu_shell_insert (GTK_MENU_SHELL (menushell), @@ -2405,7 +2405,7 @@ update_node (GtkUIManager *self, { info->proxy = gtk_action_create_tool_item (action); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); gtk_widget_set_name (info->proxy, info->name); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), @@ -2451,7 +2451,7 @@ update_node (GtkUIManager *self, gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, pos); info->proxy = GTK_WIDGET (item); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); gtk_widget_set_no_show_all (info->proxy, TRUE); g_object_set_data (G_OBJECT (info->proxy), "gtk-separator-mode", @@ -2476,7 +2476,7 @@ update_node (GtkUIManager *self, { info->proxy = gtk_separator_menu_item_new (); g_object_ref (info->proxy); - gtk_object_sink (info->proxy); + gtk_object_sink (GTK_OBJECT (info->proxy)); gtk_widget_set_no_show_all (info->proxy, TRUE); g_object_set_data (G_OBJECT (info->proxy), "gtk-separator-mode", @@ -2534,16 +2534,6 @@ update_node (GtkUIManager *self, } static gboolean -do_updates_idle (GtkUIManager *self) -{ - GDK_THREADS_ENTER (); - do_updates (self); - GDK_THREADS_LEAVE (); - - return FALSE; -} - -static gboolean do_updates (GtkUIManager *self) { /* this function needs to check through the tree for dirty nodes. @@ -2565,6 +2555,16 @@ do_updates (GtkUIManager *self) return FALSE; } +static gboolean +do_updates_idle (GtkUIManager *self) +{ + GDK_THREADS_ENTER (); + do_updates (self); + GDK_THREADS_LEAVE (); + + return FALSE; +} + static void queue_update (GtkUIManager *self) { |