Bug 44336 - missing support for cairo_region_t
Summary: missing support for cairo_region_t
Status: RESOLVED FIXED
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 18:59 UTC by shy
Modified: 2017-07-05 14:47 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Python cairo binding for Region and RectangleInt (28.06 KB, patch)
2012-05-13 06:25 UTC, Bug Fly
Details | Splinter Review

Description shy 2011-12-30 18:59:56 UTC
pycairo 1.10.0 does not yet support the cairo_region_t.
Comment 1 David Klasinc 2012-01-23 11:13:58 UTC
If someone can shed some light on a workaround, I'd appreciate it. I am trying to use Gtk.Window.input_shape_combine_region() and I can't figure it out on how to do it without regions.
Comment 2 Bug Fly 2012-05-13 06:25:09 UTC
Created attachment 61553 [details] [review]
Python cairo binding for Region and RectangleInt

I put together a patch to add binding for Region and the related RectangleInt classes. This is on the py3cairo tree. I don't see much python3 specific code though.

Please review.
Comment 3 shy 2012-06-13 07:36:39 UTC
Bug Fly's patch works for me.

Now I'm trying to make pygobject support the cairo_region_t.
(See http://bugzilla.gnome.org/show_bug.cgi?id=667959 .)
Comment 4 Steve Chaplin 2012-08-19 05:52:34 UTC
Thanks for the patch, it's been applied to the git repo.
Comment 5 shy 2013-02-08 13:00:12 UTC
Thank you so much, Steve.

Is there a timeline for the next release?
My patch is waiting for a new pycairo release.
(https://bugzilla.gnome.org/show_bug.cgi?id=667959)
Comment 6 shy 2013-08-31 19:30:13 UTC
Ping?
Comment 7 Matthew Gatto 2014-12-04 13:58:05 UTC
Is there any chance a release will happen soon? Our project needs these changes to go out to the distributions so we can use Gdk.Window.shape_combine_region() and finish conversion from pygtk to pygi.
Comment 8 i 2015-05-03 16:21:08 UTC
Is there any update on this bug?

I've recently tried porting one of my project to pygobject and now I'm blocked by this.
Comment 9 Christoph Reiter 2017-04-08 10:18:11 UTC
For future reference:

On Sat, Apr 8, 2017 at 3:24 AM, Mozbugbox <mozbugbox@yahoo.com.au> wrote:
> Hi Christoph,
>
> Yes, the patch are available under both py2cairo and pycairo licenses:
>
> the GNU Lesser General Public License (LGPL) version 2.1
> the Mozilla Public License (MPL) version 1.1
> the GNU Lesser General Public License (LGPL) version 3
>
> thanks for your work!
>
> On Saturday, 8 April 2017, 0:23, Christoph Reiter
> <reiter.christoph@gmail.com> wrote:
>
> Hey,
>
> I was wondering if you would make the following patch available under
> the Python2 pycairo licenses, so it can also be applied there:
>
> https://bugs.freedesktop.org/show_bug.cgi?id=44336#c2
>
> regards
Comment 10 Christian Stadelmann 2017-06-01 19:09:16 UTC
According to the changelog, pycairo 1.11.0 and newer supports cairo_region_t:
https://pycairo.readthedocs.io/en/latest/changelog.html
Comment 11 Christoph Reiter 2017-07-05 14:47:11 UTC
(In reply to Christian Stadelmann from comment #10)
> According to the changelog, pycairo 1.11.0 and newer supports cairo_region_t:
> https://pycairo.readthedocs.io/en/latest/changelog.html

Yes, fixed since 1.11


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.