This bug was fixed in the package pygobject - 3.7.5.1-0ubuntu1

---------------
pygobject (3.7.5.1-0ubuntu1) raring; urgency=low

  * New upstream release
  * Add 01_cairo_region.patch: Add foreign type for cairo_region_t.
    Debian/Ubuntu's pycairo packages have support for this backported from
    trunk, need to keep this as a patch until there is a new pycairo upstream
    release. (LP: #1028115)
  * Add disable_micro_version_test.patch: Disable microversion test for "5.1"
    microversion. Can be dropped at next upstream release.
 -- Martin Pitt <[email protected]>   Mon, 11 Feb 2013 08:22:21 +0100

** Changed in: pygobject (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/1028115

Title:
  Gdk.cairo_region_create_from_surface() raises an error in GI

Status in Python bindings for GObject:
  Confirmed
Status in “py3cairo” package in Ubuntu:
  Fix Released
Status in “pygobject” package in Ubuntu:
  Fix Released
Status in “py3cairo” package in Debian:
  Fix Released

Bug description:
  This happens on current 12.10 daily:

  >>> from gi.repository import Gdk
  >>> import cairo
  >>> surface = cairo.ImageSurface(0, 100, 100)
  >>> Gdk.cairo_region_create_from_surface(surface)
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/dist-packages/gi/types.py", line 47, in function
      return info.invoke(*args, **kwargs)
  TypeError: Couldn't find conversion for foreign struct 'cairo.Region'

  Upstream has some additional info and a couple of patches for this:
  https://bugzilla.gnome.org/show_bug.cgi?id=667959
  https://bugs.freedesktop.org/show_bug.cgi?id=44336

To manage notifications about this bug go to:
https://bugs.launchpad.net/pygobject/+bug/1028115/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to