GNOME Bugzilla – Bug 657385
[introspection] gtk_menu_popup() not introspected
Last modified: 2012-03-20 10:50:34 UTC
Don't really know why, but gtk_menu_popup() is not introspected, making it difficult to popup menus from JS.
its not introspected because of the (skip) annotation. I added gtk_menu_popup_for_device() specifically for the purpose of having a usable api for bindings
Actually gtk_menu_popup_for_device() works fine. I think it should somehow be mapped automatically by the bindings when calling menu.popup(), (not sure how to do this) or this different behavior when using a binding should be documented.
I think there is a Rename: annotation that could be used to make gtk_menu_popup_for_device appear as gtk_menu_popup to bindings.
The following fix has been pushed: dbd66a8 GtkMenu: Improve annotations
Created attachment 206147 [details] [review] GtkMenu: Improve annotations Add a 'Rename to' annotation so gtk_menu_popup_for_device appears in bindings as gtk_menu_popup (which we skip anyway).
Can we please revert this? We can't just pretend that gtk_menu_popup() and gtk_menu_popup_for_device() are the same, as they have a different API (the latter has, unsurprisingly, an extra "device" argument). This also breaks all programs which currently call popup_for_device() through GI, so it's an API break. I think a better fix for this is to provide unintrospectable API through overrides, such as pygobject has done for a while: http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py#n1395
Hi! I'm taking the freedom on reopening this issue since accerciser is affected by it, and, probably, more applications are affected too. So what's the final decission on this? Tell me if I can do something to help here. Thanks in advance!
Ping again. Can we please revert this before it gets into the stable 3.4 release?
I've reverted this earlier today
Thank you!