mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
65485cbc7c
Add always-show-image="true|false" attribute to <menuitem> element in UI manager markup. If present, it overrides the always-show-image property on image menu items. Bug #589842.
36 lines
1.2 KiB
XML
36 lines
1.2 KiB
XML
<!--*- xml -*-->
|
|
<ui>
|
|
<menubar>
|
|
<menu name="FileMenu" action="FileMenuAction">
|
|
<menuitem name="New" action="NewAction" position="top" />
|
|
<separator name="Sep1" />
|
|
<separator name="Sep2" />
|
|
<menuitem name="Quit" action="QuitAction" always-show-image="true" />
|
|
<separator name="Sep3" />
|
|
</menu>
|
|
<menu name="EditMenu" action="EditMenuAction">
|
|
<menu name="EmptyMenu1" action="EmptyMenu1Action">
|
|
<menuitem name="Cut" action="CutAction" />
|
|
</menu>
|
|
<menu name="EmptyMenu2" action="EmptyMenu2Action">
|
|
<menuitem name="Cut" action="CutAction" />
|
|
</menu>
|
|
</menu>
|
|
<menu name="HelpMenu" action="HelpMenuAction">
|
|
<menuitem name="About" action="AboutAction" />
|
|
</menu>
|
|
</menubar>
|
|
<toolbar name="toolbar1">
|
|
<placeholder name="ToolbarPlaceholder">
|
|
<toolitem name="Quit" action="QuitAction" />
|
|
<separator name="Sep2"/>
|
|
</placeholder>
|
|
</toolbar>
|
|
<popup name="FileMenu" action="FileMenuAction">
|
|
<menuitem name="New" action="NewAction" position="top" />
|
|
<menu name="HelpMenu" action="HelpMenuAction">
|
|
<menuitem name="About" action="AboutAction" />
|
|
</menu>
|
|
</popup>
|
|
</ui>
|