pycairo 1.10.0 does not yet support the cairo_region_t.
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.
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.
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 .)
Thanks for the patch, it's been applied to the git repo.
Thank you so much, Steve.
Is there a timeline for the next release?
My patch is waiting for a new pycairo release.
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.
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.
For future reference:
On Sat, Apr 8, 2017 at 3:24 AM, Mozbugbox <firstname.lastname@example.org> 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
> <email@example.com> wrote:
> I was wondering if you would make the following patch available under
> the Python2 pycairo licenses, so it can also be applied there:
According to the changelog, pycairo 1.11.0 and newer supports cairo_region_t:
(In reply to Christian Stadelmann from comment #10)
> According to the changelog, pycairo 1.11.0 and newer supports cairo_region_t:
Yes, fixed since 1.11