[gtkmm] uimanager and separator.
- From: "Julien H" <tiz_mm hotmail com>
- To: gtkmm-list gnome org
- Subject: [gtkmm] uimanager and separator.
- Date: Wed, 08 Sep 2004 17:32:37 +0000
Hi !
I'm noob in gtkmm.
I can't add more than one separator by menu in the uimanager demo of
gtkmm-2.4.
file : example_uimanager.cc
try
{
Glib::ustring ui_info =
"<ui>"
" <menubar name='MenuBar'>"
" <menu action='FileMenu'>"
" <menuitem action='New'/>"
" <menuitem action='Open'/>"
" <separator/>" <= First
separator
" <menuitem action='Save'/>"
" <menuitem action='SaveAs'/>"
" <separator/>" <= Second
separator
" <menuitem action='Quit'/>"
" </menu>"
" <menu action='PreferencesMenu'>"
" <menu action='ColorMenu'>"
" <menuitem action='Red'/>"
" <menuitem action='Green'/>"
" <menuitem action='Blue'/>"
" </menu>"
" <menu action='ShapeMenu'>"
" <menuitem action='Square'/>"
" <menuitem action='Rectangle'/>"
" <menuitem action='Oval'/>"
" </menu>"
" <menuitem action='Bold'/>"
" </menu>"
" <menu action='HelpMenu'>"
" <menuitem action='About'/>"
" </menu>"
" </menubar>"
" <toolbar name='ToolBar'>"
" <toolitem action='Open'/>"
" <toolitem action='Quit'/>"
" <separator action='Sep1'/>"
" <toolitem action='Logo'/>"
" </toolbar>"
"</ui>";
m_refUIManager->add_ui_from_string(ui_info);
}
only the first separator appears when launching the application.
there is something else to do ?
Another thing, when I remove the part "<toolbar name='ToolBar' ....
</toolbar>"
Nothing happens, this toolbox is dummy ?
Thanks in advance.
Tiz
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !
http://search.msn.fr/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]