Re: GObject introspection for cairo
- Date: Thu, 22 Jan 2015 16:28:19 +0000
- From: Emmanuele Bassi <ebassi@xxxxxxxxx>
- Subject: Re: GObject introspection for cairo
On 22 January 2015 at 16:13, Nicola Fontana <ntd@xxxxxxxxx> wrote:
> I need introspection access to a type actually not exported in
> cairo-1.0.gir, and in fact that gir file exports only a fraction of the
> types available.
Cairo is not a GObject library, so introspection is fairly useless.
the only reason why Cairo has introspection data is for GObject
properties and signal marshallers, as well as Cairo types in exposed
in public API in other libraries; the Cairo type system is not mapped
to the GObject type system, so introspection cannot do much to
differentiate calls on, say, an image surface and an xlib surface.
for Cairo, you should always prefer native bindings — like pycairo, or
the cairo GJS module.
> The patches  and  addresses this issue: any chance to get them
> merged before the next release?
>  https://bugzilla.gnome.org/show_bug.cgi?id=686107
>  https://github.com/GNOME/gobject-introspection/pull/1
please, do not use pull requests on the Github mirror: nobody looks at
them, and cannot be merged from there anyway (it's a read-only
if you have patches, please attach them on Bugzilla.
[@] ebassi [@gmail.com]
gtk-devel-list mailing list