GNOME Bugzilla – Bug 729915
Popopver does not follow relative widget to find action groups
Last modified: 2014-05-12 20:42:47 UTC
My GtkPopover menu can find actions from the "app" and "win" action groups fine, as well as actions from a custom action group I have inserted into the popover with gtk_widget_insert_action_group(). Custom action groups inserted into the widget the popover is attached to do not work however, my menu item remains greyed-out. Custom action groups inserted into the GtkApplicationWindow work fine. from irc: desrt: looks like in the case of popovers, the relative widget is not being properly followed to find action groups i think this might have something to do with the way popovers get reparented up to the toplevel window indeed best to talk to mclasen about this something to test might be to install your extra actiongroup on the GtkApplicationWindow i bet that works... OS: arch linux GTK version: 3.12.1-2
Created attachment 276278 [details] Example showing problem
Created attachment 276404 [details] [review] GtkPopover: inherit actions from the relative_to widget Make the relative_to widget the parent for a GtkPopover's GtkActionGroup. This, for example, makes the menu model of a GtkMenuButton find action groups attached to the button.
Review of attachment 276404 [details] [review]: looks good to me, thanks !
Will cherry-pick to the 3.12 branch as well. Attachment 276404 [details] pushed as 8f9e50d - GtkPopover: inherit actions from the relative_to widget