mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
57f13d815d
2003-09-30 Matthias Clasen <maclas@gmx.de> * tests/merge-*.ui: * tests/testmerge.c: Test handling of empty menus. * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine whether a menu is empty. Used in gtkaction.c. (update_smart_separators): Also update the visibility of empty menus. (update_node): When creating a new menu proxy, insert an "Empty" menu item which only gets shown if the menu is empty. * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of "is_important" for menu proxies. (_gtk_action_sync_menu_visible): New function to sync the visibility of menu proxies. Used in gtkuimanager.c. (gtk_action_sync_visible): New function to sync the visibility of proxies.
29 lines
964 B
XML
29 lines
964 B
XML
<!--*- xml -*-->
|
|
<ui>
|
|
<menubar>
|
|
<menu name="FileMenu" action="FileMenuAction">
|
|
<menuitem name="Open" action="OpenAction" />
|
|
<menuitem name="Bold" action="BoldAction" />
|
|
</menu>
|
|
<menu name="EditMenu" action="EditMenuAction">
|
|
<menuitem name="Cut" action="CutAction" />
|
|
<menu name="EmptyMenu1" action="EmptyMenu1Action">
|
|
</menu>
|
|
<menu name="EmptyMenu2" action="EmptyMenu2Action">
|
|
</menu>
|
|
</menu>
|
|
<placeholder name="TestPlaceholder" />
|
|
</menubar>
|
|
<toolbar name="toolbar1">
|
|
<placeholder name="ToolbarPlaceholder">
|
|
<toolitem name="nb2" action="New2Action" />
|
|
<separator name="Sep1" />
|
|
</placeholder>
|
|
<toolitem name="NewButton" action="NewAction" />
|
|
<toolitem name="CutButton" action="CutAction" />
|
|
<toolitem name="CopyButton" action="CopyAction" />
|
|
<toolitem name="PasteButton" action="PasteAction" />
|
|
<placeholder name="JustifyToolItems"/>
|
|
</toolbar>
|
|
</ui>
|