No way of creating a widget for a menu model
@cosimoc
Submitted by Cosimo Cecchi Assigned to gtk..@..tk.org
Link to original bug (#733977)
Description
In gnome-documents, we have an entry dropdown menu for search options, using a GtkPopover. To get a consistent look, and to keep the code simple, it makes a lot of sense to use GActions and a GMenu to model those options. The problem is that currently GTK has no public API to create a widget for a GMenuModel; I was able to work this around by creating a GtkPopover and stealing its child, but it's not a very future-proof solution.
Instead, it would be best to have a public API to create an (opaque) widget foe a GMenuModel, basically exposing what happens inside gtk_popover_bind_model().
Version: 3.13.x