GNOME Bugzilla – Bug 677559
argument of Gdk.Keymap.map_virtual_modifiers is not correct in gdk-3.0.vapi
Last modified: 2012-09-10 13:12:06 UTC
argument of Gdk.Keymap.map_virtual_modifiers is not correct in gdk-3.0.vapi. I think it should be changed from public bool map_virtual_modifiers (Gdk.ModifierType state) to public bool map_virtual_modifiers (ref Gdk.ModifierType state).
This was fixed in 0.16
I fount latest code is using out instead of ref. but actually the arg is in/out arg. I think ref is correct.
They are marked as out (not inout) in gdk (see [1]), so would you mind taking the issue up with them? If it's wrong it should be fixed upstream so other GObject Introspection consumers can benefit, and I don't have any direct knowledge on the subject. [1]: http://developer.gnome.org/gdk3/stable/gdk3-Keyboard-Handling.html#gdk-keymap-map-virtual-modifiers
Move this issue to gtk
I think the argument state of gdk_keymap_map_virtual_modifiers spshould be in out instead of out. It may cause problem in gobject-introspection consumers. Please fix it.
Created attachment 220764 [details] [review] gdk: fix GI annotation and document for {map,add}_virtual_modifiers
(In reply to comment #6) > Created an attachment (id=220764) [details] [review] > gdk: fix GI annotation and document for {map,add}_virtual_modifiers Seems good. Thanks for the patch Attachment 220764 [details] pushed as 7937b5d - gdk: fix GI annotation and document for {map,add}_virtual_modifiers