GNOME Bugzilla – Bug 655496
X11-specific objects methods are introspected as static functions
Last modified: 2011-08-01 09:28:54 UTC
GdkX11 contains functions like XID gdk_x11_window_get_xid (GdkWindow *window) When parsed in .gir, resulting method should be GdkX11.X11Window.get_xid() but because 1st argument is GdkWindow* and not GdkX11Window*, gi-ir-scanner creates static function GdkX11.X11Window.get_xid(Gdk.Window arg)
Created attachment 192812 [details] [review] Add (type) annotations for 'this' argument This patch solves the issue by explicit marking of first argument with real type. Note that this might break API (depends on binding implementation), but most of these methods were not introspectable up-to-now (see bug 655495), so I don't think that this is a problem, but it is definitely up to reviewer to decide.
Review of attachment 192812 [details] [review]: Should be okay, ideally g-i should be smarter and figure out that X11Window is a parent class of Window (in some cases).
Review of attachment 192812 [details] [review]: Committed