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