Summary: | missing support for cairo_region_t | ||
---|---|---|---|
Product: | pycairo | Reporter: | shy |
Component: | general | Assignee: | Steve Chaplin <d74n5pohf9> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | acc-bugz-freedesktop, bigwhale, martin.pitt, mattgatto |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Python cairo binding for Region and RectangleInt |
Description
shy
2011-12-30 18:59:56 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. 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. 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. (https://bugzilla.gnome.org/show_bug.cgi?id=667959) Ping? 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 <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 According to the changelog, pycairo 1.11.0 and newer supports cairo_region_t: https://pycairo.readthedocs.io/en/latest/changelog.html (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.