Re: [Vala] gee version



Please always reply to mailing list posts on-list. (also, please don't
copy individuals into your replies, we read the list)

On 11/07/12 14:18, andreas graeper wrote:
thanks for quick answer. which version i should use ?!

Your choice. Gee-1.0 is more widely deployed at the moment, Gee-0.8 has
more features.

i installed 0.7.2 and get warnings when using l.size for ArrayList<class> l;

‘gee_abstract_collection_get_size’ from incompatible pointer type
expected ‘struct GeeAbstractCollection *’ but argument is of type
‘struct GeeCollection *’

The vala compiler is not perfect. It generates working code, but
sometimes C compiler warnings happen. That's life.


in *.c is actually used GeeCollection* for xxx_get_size() where in
other function calls GeeAbstractCollection* is used.

and (nothing to do with gee) after a warning
Gtk-CRITICAL **: gtk_widget_set_parent: assertion `widget != parent' failed
a segfault inside a dialog-constructor when

var vb = new VBox(false,0);
vb.pack_start( .. )      // here the first warning
 ...
var ca = get_content_area() as Gtk.Container ;
ca.add( vb ) // here the segfault

probably a reason: Gtk.ComboBox.text() in gtk 2.20.
i red before combobox_with_text() was introduced in gtk2.24 ?!

another question: GLib.List.sort() does not work properly ?! in gtk 2.20
 after problems in vala: list.append(literal) does not work cause a macro uses &
 there is need to create a var as in c, the sort does not sort.
 but in hand-written c the same error. so it is obviously an error in gtk ?!
 gee.ArrayList.sort() works.

regards
andreas




2012/7/6, Thomas Jollans <t jollybox de>:
On 07/06/2012 09:18 AM, andreas graeper wrote:
i.e. when i try to install valadoc it requires gee-1.0 but top is
0.7.2 what installs a gee-0.8.pc
and gee-documentation tells about gee-1.0, too ?!

There are two branches of Libgee, with two slightly different APIs.

libgee-0.7.2 is the current version of gee-0.8
libgee-0.6.4 is the current version of gee-1.0
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]