5 Jan
2012
5 Jan
'12
8:23 p.m.
On 5-1-2012 1:01, Krzysztof KosiĆski wrote:
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.
Great, thanks for the link. It works now. But the result is disappointing...
Ciao, Johan