Commit f5fff322 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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"...).
parent 47ee9667
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)
......
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)
......
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)
......
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment