Re: [Vala] structs and lists

2008-08-04 Thread Maciej Piechotka
Roberto Majadas [EMAIL PROTECTED] writes: Hi people : Anybody can help me with this code ? I want to add a struct to a GList. But valac --pkg glib-2.0 --pkg gtk+-2.0 -o struct struct.vala struct.c: In function 'xclass_run': struct.c:37: error: incompatible type for argument 2 of

Re: [Vala] structs and lists

2008-08-04 Thread Roberto Majadas
El lun, 04-08-2008 a las 09:44 +0200, Maciej Piechotka escribió: Roberto Majadas [EMAIL PROTECTED] writes: You cannot store structs in list. 1. Use class 2. Use pointers or other type of references * How can i create a pointer to struct ?. Something like g_new0(XStruct, 1) Is it possible ?

[Vala] structs and lists

2008-08-03 Thread Roberto Majadas
Hi people : Anybody can help me with this code ? I want to add a struct to a GList. But valac --pkg glib-2.0 --pkg gtk+-2.0 -o struct struct.vala struct.c: In function 'xclass_run': struct.c:37: error: incompatible type for argument 2 of 'g_list_append' error: cc exited with status 256