summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication-quartz-menu.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2014-12-16 12:14:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-12-22 06:22:26 -0500
commit6b26664c414a44e26553c0546632c9d5fff6a7b1 (patch)
treeb546049f118bf56eb21712bad11190010d489fa3 /gtk/gtkapplication-quartz-menu.c
parent4bc3f02d51051fd7deff1a658d40a3859bb68a42 (diff)
downloadgtk+-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/gtkapplication-quartz-menu.c')
-rw-r--r--gtk/gtkapplication-quartz-menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkapplication-quartz-menu.c b/gtk/gtkapplication-quartz-menu.c
index 7c49d78fc4..caf0154a4f 100644
--- a/gtk/gtkapplication-quartz-menu.c
+++ b/gtk/gtkapplication-quartz-menu.c
@@ -379,6 +379,7 @@ menu_item_removed (gint position,
model,
NO,
YES,
+ YES,
NULL,
menu_item_inserted,
menu_item_removed,
@@ -397,6 +398,7 @@ menu_item_removed (gint position,
tracker = gtk_menu_tracker_new_for_item_link (trackerItem,
G_MENU_LINK_SUBMENU,
YES,
+ YES,
menu_item_inserted,
menu_item_removed,
self);