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()
email@example.com list messages:
Created attachment 72124 [details] [review]
Patch for py2cairo (Python 2)
Created attachment 72125 [details] [review]
Patch for pycairo (Python 3)
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.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.