Re: Is it possible to get a Gtk::MenuToolButton in the Toolbar by using the UIManager?
- From: Adrián Ortega <elfus0 1 gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Is it possible to get a Gtk::MenuToolButton in the Toolbar by using the UIManager?
- Date: Sun, 24 Jan 2010 11:40:19 -0600
On Sat, 2010-01-23 at 15:50 +0100, Krzysztof Kosiński wrote:
> 2010/1/22 Adrián Ortega <elfus0 1 gmail com>:
> > I also tried this:
> >
> > "<ui>
> > " <toolbar name='MyToolBar'>"
> > " <menu action="NewMenu'>"
> > " <toolitem action='New'/>"
> > " </menu>"
> > " </toolbar>"
> > "</ui>"
> >
> > That didn't work though.
>
> I think it should be the other way around. I didn't test it though.
>
> <toolbar name='MyToolbar'>
> <toolitem action='new'>
> <menu name='NewMenu' action='new-templates'>
> <menuitem action='template1'/>
> <menuitem action='template2'/>
> </menu>
> </toolitem>
> </toolbar>
>
> Regards, Krzysztof
Thanks for your response, I tried that:
" <toolbar name='MyToolBar'>"
" <toolitem action='NewButton'>"
" <menu action='new-templates'>"
" <menuitem action='template1'/>"
" <menuitem action='template2'/>"
" </menu>"
" </toolitem>"
" </toolbar>"
and I got the following error:
Gtk-CRITICAL **: gtk_menu_tool_button_set_menu: assertion
`GTK_IS_MENU_TOOL_BUTTON (button)' failed
In the toolbar appears a ToolButton with the name and image on it just
like the other but no MenuToolButton on the button.
Seems the <menu></menu> definitions creates a MenuItem rather than a
ToolItem? not really sure. I'll double check the documentation of the
Toolbar classes to try figure this out.
Thanks for your help!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]