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:
Matthias Clasen 2004-11-08 20:43:59 +00:00 committed by Matthias Clasen
parent 47ee9667e1
commit f5fff322db
5 changed files with 16 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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);