GNOME Bugzilla – Bug 677388
foreign: Register cairo.Path and cairo.FontOptions foreign structs
Last modified: 2012-06-05 13:51:44 UTC
They are rarely used, but they are used at least by Gdk, PangoCairo and Clutter.
Created attachment 215546 [details] [review] foreign: Register cairo.Path and cairo.FontOptions foreign structs
Thanks Bastian. Do you have a small example script or even a test case to demonstrate these?
thanks for asking, I just found a mistake. cairo_font_options_from_arg() needs to copy the font_options I'll update the patch however, a simple example would be >>> from gi.repository import Gtk >>> window = Gtk.Window() >>> screen = window.get_screen() >>> options = screen.get_font_options() for cairo.Path there is no real-world test case, as nobody but Clutter.Path uses this API (only as a in-arg, which should work). maybe I find something for demonstration...
Created attachment 215634 [details] [review] foreign: Register cairo.Path and cairo.FontOptions foreign structs Fixed cairo_font_options_from_arg()
Thanks! I added a minimal test case for FontOptions, and made a note about cairo.Path. http://git.gnome.org/browse/pygobject/commit/?id=b21f66d2a399b8c9a36a1758107b7bdff0ec8eaa