GNOME Bugzilla – Bug 674537
GtkMenuPositionFunc: x and y should be "inout"
Last modified: 2015-01-17 21:31:43 UTC
The x and y parameters of GtkMenuPositionFunc are currently labeled as "out". But the code in gtk_menu_position actually populates them with useful values before calling the GtkMenuPositionFunc, so I think x and y should be labeled "inout". Note that this would constitute an API change for introspection-based bindings. And if this change were to be made, the annotations for gtk_status_icon_position_menu would need to be changed similarly.
http://developer.gnome.org/gtk3/3.5/GtkMenu.html#GtkMenuPositionFunc
not sure if changing this now would be an introspection api break ?
it would be for some languages, but admittedly that's how the API is supposed to be used. it would probably need to be part of the release notes.
Created attachment 292422 [details] [review] gtk_status_icon_position_menu patch Please also change gtk_status_icon_position_menu as mentioned above.
Review of attachment 292422 [details] [review]: ACK.