GNOME Bugzilla – Bug 743364
Revamp cairo-1.0.gir
Last modified: 2017-05-09 15:22:33 UTC
Created attachment 295205 [details] [review] Cosmetic changes before real patches libcairo-gobject wraps in GObject style a lot of types that are not exported by the gir file.
Created attachment 295206 [details] [review] CairoFontOptions is a GBoxed type
Created attachment 295207 [details] [review] Correct wrong GLib type name for cairo_content_t
Created attachment 295208 [details] [review] Use proper GLib values for cairo_content_t
Created attachment 295209 [details] [review] cairo_font_type_t is a GEnum
Created attachment 295210 [details] [review] This is the main patch: include missing types from cairo
Bug #686107 is somewhat related: it exports cairo_rectangle_t type.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Hmm...how are you using this patch? Is it with gjs?
(In reply to Colin Walters from comment #8) > Hmm...how are you using this patch? Is it with gjs? No, I'm using dynamic Lua bindings: https://github.com/pavouk/lgi I have exported in the public API of my library a couple of functions that require cairo_surface_type_t, so fo my own purposes I just need that type. I took the time to add also the other missing types though.
I'll desperately need the above patches in the near future. If it could help in speeding up, I can rebase and/or squash the above commits. Or if you prefer I can request a git account to have write access to the repository and do it by myself.
Review of attachment 295205 [details] [review]: Ok
Review of attachment 295206 [details] [review]: Okay.
Review of attachment 295207 [details] [review]: Okay.
Review of attachment 295208 [details] [review]: Okay.
Review of attachment 295209 [details] [review]: Okay.
Review of attachment 295210 [details] [review]: Okay.
Attachment 295206 [details] pushed as b7a8613 - CairoFontOptions is a GBoxed type Attachment 295207 [details] pushed as deb946c - Correct wrong GLib type name for cairo_content_t Attachment 295208 [details] pushed as 14dcadb - Use proper GLib values for cairo_content_t Attachment 295209 [details] pushed as 08a817c - cairo_font_type_t is a GEnum