After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666862 - Gdk.Window.get_visible_region() raises TypeError: Couldn't find conversion for foreign struct 'cairo.Region'
Gdk.Window.get_visible_region() raises TypeError: Couldn't find conversion fo...
Status: RESOLVED DUPLICATE of bug 667959
Product: pygobject
Classification: Bindings
Component: introspection
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-26 13:07 UTC by shy
Modified: 2013-02-27 15:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description shy 2011-12-26 13:07:25 UTC
Calling the get_visible_region method of a Gdk.Window raises the TypeError.

>>> from gi.repository import Gtk
>>> win = Gtk.Window()
>>> darea = Gtk.DrawingArea()
>>> win.add(darea)
>>> darea.realize()
>>> darea.get_window().get_visible_region()
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
  • File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43 in function
    return info.invoke(*args, **kwargs)
TypeError: Couldn't find conversion for foreign struct 'cairo.Region'

I also tried get_clip_region method and got same error.
Comment 1 Sebastian Pölsterl 2012-04-21 14:09:44 UTC
Confirming that this issue is still present in pygobject 3.2.0.
Comment 2 Martin Pitt 2013-02-27 15:01:02 UTC

*** This bug has been marked as a duplicate of bug 667959 ***