GNOME Bugzilla – Bug 760312
gtkapplication: export windows directly as action groups
Last modified: 2016-01-15 08:49:28 UTC
GtkApplicationWindow is a GActionGroup. Export the window directly instead of the GSimpleActionGroup contained in them. This allows overriding methods from the GActionGroup interface in GtkApplicationWindow subclasses.
Created attachment 318472 [details] [review] gtkapplication: export windows directly as action groups
Review of attachment 318472 [details] [review]: I don't think that this will work. The GSimpleActionGroup inside of the window is actually a subclass which also implements GRemoteActionGroupInterface. This is necessary to ensure that external actions forward the timestamp correctly. GtkApplicationWindow will not correctly pass this information on to the internal group. Can you also provide a bit of context about the exact usecase that motivates this? I'm suspicious...
(In reply to Allison Ryan Lortie (desrt) from comment #2) > Review of attachment 318472 [details] [review] [review]: > Can you also provide a bit of context about the exact usecase that motivates > this? I'm suspicious... You're right. Thanks for catching this. I was trying to export an internal action group under a prefix by overriding the GActionGroup vfuncs from GtkApplicationWindow. As we discussed on IRC, a working fix for this will be more elaborate and probably involves making GtkApplicationWindow implement GRemoteActionGroup. That work is out of scope for this bug though.