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 531904 - gtk_menu_item_set_submenu
gtk_menu_item_set_submenu
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: Other
2.10.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-05-07 08:11 UTC by Snark
Modified: 2008-07-06 23:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Snark 2008-05-07 08:11:36 UTC
I was investigating stopping using gtk_menu_item_remove_submenu in favour of the GTK+ 2.12 way of doing (gtk_menu_item_set_submenu to NULL), but I saw in the code that GTK+ 2.10 doesn't really allow that, since http://svn.gnome.org/viewvc/gtk%2B/tags/GTK_2_10_9/gtk/gtkmenuitem.c?view=markup
shows that submenu isn't tested, then is used for a call to gtk_menu_attach_to_widget.

That means there's a bug in GTK+ 2.10 : that code will give warnings. I think it works though.

Not sure if it's worth fixing, but at least it is reported.
Comment 1 Matthias Clasen 2008-07-06 23:49:48 UTC
The deprecation of gtk_menu_item_remove_submenu is from 2.12 onwards, where gtk_menu_item_set_submenu has been fixed up to work for NULL