2012/1/4 Johan Engelen <jbc.engelen@...2592...>:
" <toolitem action='NodeInsertAction'>" " <menu action='NodeInsertActionMenu'>" " <menuitem action='NodeInsertActionMinX' />" " <menuitem action='NodeInsertActionMaxX' />" " <menuitem action='NodeInsertActionMinY' />" " <menuitem action='NodeInsertActionMaxY' />" " </menu>" " </toolitem>"
or so I learn from a gtk demo [1]. It uses a new GtkMenuToolButton [2]. But, alas, if you rewrite it, you get GTK errors and Inkscape terminates...
Here is an example. http://www.gtkforums.com/viewtopic.php?t=4215
Basically you need to derive a new type from GtkAction and set the toolbar_item_type member of GtkActionClass to GTK_TYPE_MENU_TOOL_BUTTON. I'm not sure whether you can do this at all from gtkmm.
Regards, Krzysztof