GtkUIManager toolbar menus



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

I'm using a GtkUIManager menu and toolbar definition (inside a
GtkBuilder UI definition, but I don't think it is related) and I would
create a drop-down menu in the toolbar, containing some of my menu elements.
What I want is something like GEdit's "recent files" drop-down toolbar
menu, but not in a such dynamic way.

But I can't find how to do this, and the web seems poor on this question.

The UI should be alike this (but working ^^):
<toolitem action="menufile:save">
  <menu action="menufile:menuexport">
    <menuitem action="menufile:menuexport:latex"/>
    <menuitem action="menufile:menuexport:man"/>
    <!-- and more... -->
  </menu>
</toolitem>

If I use this, I got the following error:
Gtk-CRITICAL **: gtk_menu_tool_button_set_menu: assertion
`GTK_IS_MENU_TOOL_BUTTON (button)' failed

Thanks by advance!
Colomban
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoimDEACgkQyqbACDEjVWh3YwCeIWBKNeKk0VXOC1LFe4pytvRN
MIMAniyjIWs6C/WdBx7ZLwvO044bcGGG
=Q2Yh
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]