Re: Pango library seems to be really hard for gobject-introspection?

2017-09-11 Thread Stefan Salewski
On Mon, 2017-09-11 at 07:25 +, Emmanuele Bassi wrote: > If you're writing a language binding, you should use the GBoxed API > for all boxed types, as that defers to the correct function without > having to make up an annotation for copy and free functions. That is interesting, thanks. I will r

Re: Pango library seems to be really hard for gobject-introspection?

2017-09-11 Thread Emmanuele Bassi
On Sun, 10 Sep 2017 at 00:29, Stefan Salewski wrote: > On Sat, 2017-09-09 at 21:46 +, Emmanuele Bassi wrote: > > Boxed types use g_boxed_free() to release resources, and > > g_boxed_copy() to copy them: > > https://developer.gnome.org/gobject/stable/gobject-Boxed-Types.html > > > > Ciao, > >

Re: Pango library seems to be really hard for gobject-introspection?

2017-09-09 Thread Stefan Salewski
On Sat, 2017-09-09 at 21:46 +, Emmanuele Bassi wrote: > Boxed types use g_boxed_free() to release resources, and > g_boxed_copy() to copy them: > https://developer.gnome.org/gobject/stable/gobject-Boxed-Types.html > > Ciao, >  Emmanuele. Yes I know :-) But from https://developer.gnome.org/p

Re: Pango library seems to be really hard for gobject-introspection?

2017-09-09 Thread Emmanuele Bassi
Boxed types use g_boxed_free() to release resources, and g_boxed_copy() to copy them: https://developer.gnome.org/gobject/stable/gobject-Boxed-Types.html Ciao, Emmanuele. On Sat, 9 Sep 2017 at 21:29, Stefan Salewski wrote: > First I noticed that for pango_font_description_from_string() > > Fro

Pango library seems to be really hard for gobject-introspection?

2017-09-09 Thread Stefan Salewski
First I noticed that for pango_font_description_from_string() >From /usr/share/gir-1.0/Pango-1.0.gir we know that transfer- ownership="full" so we have to free it in our language bindings. But how to guess the function for freeing? For gobject there is generally a plain g_object_unref() necessar