gdk_property_get is not available with TypeError in gir
@fujiwarat
Submitted by Takao Fujiwara Link to original bug (#670509)
Description
When I run Gdk.property_get(), it causes a TypeError.
% python a.py
Traceback (most recent call last):
File "a.py", line 124, in <module>
print Gdk.property_get(root_window, xkb_rules_name, xa_string, 0, 1024, pdelete)
File "/usr/lib64/python2.7/site-packages/gi/types.py", line 43, in function
return info.invoke(*args, **kwargs)
TypeError: Could not caller allocate argument 6 of callable property_get
% cat a.py
from gi.repository import Gdk
root_window = Gdk.get_default_root_window() net_desktop_names = Gdk.Atom.intern('_NET_DESKTOP_NAMES', False) xa_string = Gdk.Atom.intern('UTF8_STRING', False) print Gdk.property_get(root_window, net_desktop_names, xa_string, 0, 1024, 0)
I'm attaching the patch.