mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
720bdb8daf
2003-08-26 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize for length, not gsize. * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to <ui> and make it optional in strings. Rename verb to action, <dockitem> to <toolbar>, <menu> to <menubar>, <submenu> to <menu>. * demos/gtk-demo/appwindow.c: * tests/testactions.c: * tests/testmerge.c: * tests/merge-1.ui: * tests/merge-2.ui: * tests/merge-3.ui: Adjust to the new XML format.
28 lines
826 B
XML
28 lines
826 B
XML
<!--*- xml -*-->
|
|
<ui>
|
|
<menubar>
|
|
<menu name="FileMenu" action="StockFileMenuAction">
|
|
<menuitem name="New" action="NewAction" pos="top" />
|
|
<separator />
|
|
<menuitem name="Quit" action="QuitAction" />
|
|
</menu>
|
|
<menu name="HelpMenu" action="StockHelpMenuAction">
|
|
<menuitem name="About" action="AboutAction" />
|
|
</menu>
|
|
</menubar>
|
|
<toolbar name="toolbar1">
|
|
<placeholder name="ToolbarPlaceholder">
|
|
<toolitem name="Quit" action="QuitAction" />
|
|
<separator />
|
|
</placeholder>
|
|
</toolbar>
|
|
<popups>
|
|
<popup name="FileMenu" action="StockFileMenuAction">
|
|
<menuitem name="New" action="NewAction" pos="top" />
|
|
<menu name="HelpMenu" action="StockHelpMenuAction">
|
|
<menuitem name="About" action="AboutAction" />
|
|
</menu>
|
|
</popup>
|
|
</popups>
|
|
</ui>
|