diff options
author | Ryan Lortie <desrt@desrt.ca> | 2014-12-16 12:14:23 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-12-22 06:22:26 -0500 |
commit | 6b26664c414a44e26553c0546632c9d5fff6a7b1 (patch) | |
tree | b546049f118bf56eb21712bad11190010d489fa3 /gtk/gtkmenushell.c | |
parent | 4bc3f02d51051fd7deff1a658d40a3859bb68a42 (diff) | |
download | gtk+-6b26664c414a44e26553c0546632c9d5fff6a7b1.tar.gz |
GtkMenuTracker: add hidden-when='macos-menubar'
Provide a mechanism for hiding the "Quit", "About" and "Preferences"
menu items from the normal places in a traditional menubar layout (in
the File and Edit menus) when the menu is being rendered in the Mac OS
menubar.
These items can already be found in the application menu.
With this feature, applications can now define a single menu to use in
all 'traditional' scenarios.
Use this new attribute in Bloatpad.
https://bugzilla.gnome.org/show_bug.cgi?id=741610
Diffstat (limited to 'gtk/gtkmenushell.c')
-rw-r--r-- | gtk/gtkmenushell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 939d5f4462..e1ba138b65 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -2087,7 +2087,7 @@ gtk_menu_shell_tracker_insert_func (GtkMenuTrackerItem *item, * lazy... */ submenu->priv->tracker = gtk_menu_tracker_new_for_item_link (item, - G_MENU_LINK_SUBMENU, TRUE, + G_MENU_LINK_SUBMENU, TRUE, FALSE, gtk_menu_shell_tracker_insert_func, gtk_menu_shell_tracker_remove_func, submenu); @@ -2202,8 +2202,8 @@ gtk_menu_shell_bind_model (GtkMenuShell *menu_shell, gtk_container_remove (GTK_CONTAINER (menu_shell), menu_shell->priv->children->data); if (model) - menu_shell->priv->tracker = gtk_menu_tracker_new (GTK_ACTION_OBSERVABLE (muxer), - model, with_separators, TRUE, action_namespace, + menu_shell->priv->tracker = gtk_menu_tracker_new (GTK_ACTION_OBSERVABLE (muxer), model, + with_separators, TRUE, FALSE, action_namespace, gtk_menu_shell_tracker_insert_func, gtk_menu_shell_tracker_remove_func, menu_shell); |