forked from AuroraMiddleware/gtk
Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
2004-11-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
This commit is contained in:
parent
47ee9667e1
commit
f5fff322db
@ -1,5 +1,8 @@
|
||||
2004-11-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use
|
||||
gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
|
||||
|
||||
* tests/testfilechooserbutton.c (main): Disable the SAVE
|
||||
and CREATE_FOLDER modes. (#157675, Christian Persch)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-11-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use
|
||||
gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
|
||||
|
||||
* tests/testfilechooserbutton.c (main): Disable the SAVE
|
||||
and CREATE_FOLDER modes. (#157675, Christian Persch)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-11-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use
|
||||
gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
|
||||
|
||||
* tests/testfilechooserbutton.c (main): Disable the SAVE
|
||||
and CREATE_FOLDER modes. (#157675, Christian Persch)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-11-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use
|
||||
gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
|
||||
|
||||
* tests/testfilechooserbutton.c (main): Disable the SAVE
|
||||
and CREATE_FOLDER modes. (#157675, Christian Persch)
|
||||
|
||||
|
@ -665,9 +665,10 @@ _gtk_action_sync_menu_visible (GtkAction *action,
|
||||
visible = gtk_action_is_visible (action);
|
||||
hide_if_empty = action->private_data->hide_if_empty;
|
||||
|
||||
g_object_set (G_OBJECT (proxy),
|
||||
"visible", visible && !(empty && hide_if_empty),
|
||||
NULL);
|
||||
if (visible && !(empty && hide_if_empty))
|
||||
gtk_widget_show (proxy);
|
||||
else
|
||||
gtk_widget_hide (proxy);
|
||||
}
|
||||
|
||||
gboolean _gtk_menu_is_empty (GtkWidget *menu);
|
||||
|
Loading…
Reference in New Issue
Block a user