Bug 58771 - Surface.set_mime_data() and Surface.get_mime_data()
Summary: Surface.set_mime_data() and Surface.get_mime_data()
Status: NEW
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: 2012-12-26 07:54 UTC by Simon Sapin
Modified: 2013-01-14 10:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
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

Note You need to log in before you can comment on or make changes to this bug.
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:
http://lists.cairographics.org/archives/cairo/2012-August/023388.html
http://lists.cairographics.org/archives/cairo/2012-December/023841.html
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.


bug/show.html.tmpl processed on Mar 24, 2017 at 04:19:02.
(provided by the Example extension).