Bug 58771 - Surface.set_mime_data() and Surface.get_mime_data()
Summary: Surface.set_mime_data() and Surface.get_mime_data()
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Steve Chaplin
QA Contact:
Depends on:
Reported: 2012-12-26 07:54 UTC by Simon Sapin
Modified: 2017-07-05 15:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Patch for py2cairo (Python 2) (8.87 KB, patch)
2012-12-26 07:55 UTC, Simon Sapin
Details | Splinter Review
Patch for pycairo (Python 3) (8.56 KB, patch)
2012-12-26 07:55 UTC, Simon Sapin
Details | Splinter Review
Patch for py2cairo (7.58 KB, patch)
2013-01-14 10:55 UTC, Seif Lotfy
Details | Splinter Review

Description Simon Sapin 2012-12-26 07:54:41 UTC
Hi. Attached are patches for py2cairo and pycairo (with tests and docs) that add two methods that were in cairo 1.10 but not exposed in pycairo yet:

cairo_surface_set_mime_data() -> Surface.set_mime_data()
cairo_surface_get_mime_data() -> Surface.get_mime_data()

cairo@cairographics.org list messages:
Comment 1 Simon Sapin 2012-12-26 07:55:20 UTC
Created attachment 72124 [details] [review]
Patch for py2cairo (Python 2)
Comment 2 Simon Sapin 2012-12-26 07:55:47 UTC
Created attachment 72125 [details] [review]
Patch for pycairo (Python 3)
Comment 3 Seif Lotfy 2013-01-14 10:55:03 UTC
Created attachment 73000 [details] [review]
Patch for py2cairo

I modified the patch according to Simon to not have a static set of mimetypes defined in a dict. This works perfectly. Will add a python 3 version this weekend.
Comment 4 Christoph Reiter 2017-07-05 15:19:52 UTC
Fixed since 1.12: https://github.com/pygobject/pycairo/issues/7

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.