Re: [Vala] GLib.SList as a property
- From: Lucas Hermann Negri <kkndrox gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] GLib.SList as a property
- Date: Sun, 5 Jul 2009 01:04:07 -0300
By the way, about the property of type 'string[]' / GStrv*, I'm aware
that it needs to be null terminated, like the 'documenters' property
of GtkAboutDialog.
On Sun, Jul 5, 2009 at 12:55 AM, Lucas Hermann Negri<kkndrox gmail com> wrote:
Hello,
I have a property of GLib.SList type, defined this way:
"
public SList<string> labels { get{return h_labels;} set{h_labels = value;} }
"
But this leaks memory. What's the correct way of doing this?
Also, how do I create a property of type string[]? I tried this way:
"
public string[] test { get; set; }
"
But the generated C code doesn't compiles.
Another issue:
I'm using a PangoLayout created using
Pango.cairo_create_layout(plot.cr), but I need to call unref() by hand
in the destructor. This is the correct behavior or just a bug in the
binding (other objects are managed automatically) ?
Thanks for the attention.
--
http://oproj.tuxfamily.org
--
http://oproj.tuxfamily.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]