On Wed, 2009-07-01 at 01:24 +0400, Кутейников Дмитрий wrote:
It is some sort of a bug (or a feature). Vala inserts g_object_ref in
generated C-code after myList.prepend(myWidget); but it doesn't
decrease ref_counter after remove. The only way is to use
g_object_unref manually.
What you said
Hi,
I have read about using GLib.List here:
http://live.gnome.org/Vala/ListSample
The example works, but I have a more complex usage scenario where I fail
to understand how GLib.List works.
use GLib;
List myList = new ListGtk.Widget();
Gtk.Widget myWidget = new Gtk.Widget();
It is some sort of a bug (or a feature). Vala inserts g_object_ref in
generated C-code after myList.prepend(myWidget); but it doesn't decrease
ref_counter after remove. The only way is to use g_object_unref manually.
___
Vala-list mailing list