After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 558154 - UIManager should create MenuToolItem without extra efforts
UIManager should create MenuToolItem without extra efforts
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Class: UIManager / Actions
2.14.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-27 19:41 UTC by Michael Zeising
Modified: 2014-08-30 05:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Michael Zeising 2008-10-27 19:41:12 UTC
For creating a MenuToolItem with UIManager, you have to
 * create a subclass of Action
 * call set_tool_item_type(MenuToolButton)
 * register this subclass for the <toolitem> to be rendered as a MenuToolItem

To me this appears redundant as the UIManager may guess the right action type by looking inside the <toolitem> definition.

Other information:
http://library.gnome.org/devel/pygtk/stable/class-gtkaction.html#method-gtkaction--set-tool-item-type

I'm using PyGTK but this a core issue.

Thanks a lot!

Michael
Comment 1 Matthew Barnes 2009-10-28 03:40:18 UTC
I just hit this too and would like to see GTK+ handle it more seamlessly.
Comment 2 Matthias Clasen 2014-08-30 05:07:38 UTC
GtkAction has been deprecated