emit functions for (allow-none) self arguments
Submitted by Daiki Ueno
Link to original bug (#688040)
Description
I'd like to use gdk_window_add_filter through pygobject, which seems currently inaccessible but was available through pygtk:
http://pygtk.org/docs/pygtk/class-gdkwindow.html#method-gdkwindow--add-filter
The function currently has "(skip)" annotation and I requested to remove it:
https://bugzilla.gnome.org/show_bug.cgi?id=687898
However, even it is removed, a couple of obstacles remain:
-
there seems no easy way to pass NULL as the first (self) argument
I tried:
Gdk.Window.add_filter(None, filter, None) #-> error
Gdk.Window.add_filter.info.invoke(None, filter, None) #-> error
rootwin = Gdk.get_default_root_window() bound = rootwin.add_filter.get(None, None.class) #-> still unbound
-
the callback cannot receive GdkXEvent argument (which is converted to NULL)