GNOME Bugzilla – Bug 113112
Cannot determine whether a widget has an attached menu
Last modified: 2011-02-04 16:17:01 UTC
I can call gtk_menu_attach_to_widget to attach a menu to a widget but given a widget it is not possible to determine whether it has an attached menu. Would it be posible to add a statement like g_object (G_OBJECT (attach_widget), "gtk-attached-menu", menu); to the implementation of gtl_menu_attach_to_widget?
Well, we'd certainly want to encapsulate that in gtk_menu_get_for_attach_widget() or something, rather than making the gobject key part of the API. But other than that, sounds reasonable.
Oh, one thing that woudl have to be dealt with ... there can be multiple menus attached to a single widget.
Marking AP2 to reflect a11y team's assessment of a11y impact.
Apologies for spam... marking as GNOMEVER2.3 so it appears on the official GNOME bug list :)
No patch, no final API proposal
Created attachment 26434 [details] [review] Proposed patch
Created attachment 27199 [details] [review] Corrected patch Corrects problem with previous patch when gtk_menu_detach is called.
Comment on attachment 27199 [details] [review] Corrected patch Looks good to me. You may want to add a note regarding memory management to the docs: The list is owned by GTK+ and must not be modified.
Patch committed to CVS HEAD.