GtkBuilder's add_objects_* API refuses to return <menu> objects
@kaiw
Submitted by Kai Willadsen Assigned to GtkBuilder maintainers
Link to original bug (#766402)
Description
Created attachment 327833 Proposed patch
When loading a GtkBuilder UI definition, the APIs that take a list of objects to load ignore <menu>
top-levels. Given that existing examples in GTK+ use this construction all the time, this seems like an oversight.
The attached patch fixes the problem and seems reasonable to me. However, I can't be certain that it isn't breaking assumptions elsewhere.
Patch 327833, "Proposed patch":
0001-builder-Support-menu-elements-as-requested-objects.patch
Version: 3.20.x