mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Warning fixes.
2004-07-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c: Warning fixes.
This commit is contained in:
parent
f0576244a2
commit
6f0625cee6
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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",
|
||||
@ -2533,16 +2533,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)
|
||||
{
|
||||
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user