summaryrefslogtreecommitdiff
path: root/examples/bp
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 /examples/bp
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 'examples/bp')
-rw-r--r--examples/bp/gtk/menus.ui2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/bp/gtk/menus.ui b/examples/bp/gtk/menus.ui
index a05986fdb5..60abf4adb8 100644
--- a/examples/bp/gtk/menus.ui
+++ b/examples/bp/gtk/menus.ui
@@ -11,12 +11,14 @@
<section>
<item>
<attribute name='label' translatable='yes'>_About Bloatpad</attribute>
+ <attribute name='hidden-when'>macos-menubar</attribute>
<attribute name='action'>app.about</attribute>
</item>
</section>
<section>
<item>
<attribute name='label' translatable='yes'>_Quit</attribute>
+ <attribute name='hidden-when'>macos-menubar</attribute>
<attribute name='action'>app.quit</attribute>
</item>
</section>