Comment 5 for bug 877397

Revision history for this message
Martin Pitt (pitti) wrote :

Confirmed that it's fixed upstream. Test case:

$ python -c 'from gi.repository import GObject, Gtk; print GObject.property(type=Gtk.TextIter)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py", line 111, in __init__
    self.type = self._type_from_python(type)
  File "/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py", line 202, in _type_from_python
    raise TypeError("Unsupported type: %r" % (type_,))
TypeError: Unsupported type: <class 'gi.overrides.Gtk.TextIter'>

$ jhbuild run python -c 'from gi.repository import GObject, Gtk; print GObject.property(type=Gtk.TextIter)'
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
<gobject property (uninitialized) (GtkTextIter)>

Comment 4 points to the actual fix, we should also get http://git.gnome.org/browse/pygobject/commit/?id=bef8d385 for the corresponding test case.