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
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.
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.