On 22/10/11 21:45, Luca Bruno wrote: > On Sat, Oct 22, 2011 at 10:34 PM, Abderrahim Kitouni > <[email protected] <mailto:[email protected]>> wrote: > > Hello, > > 2011/10/22 Andrew Higginson <[email protected] > <mailto:[email protected]>>: > > Hi, when I compile this code: > > http://pastebin.com/EjdvB6RU > > > > (Which generates this C code): > > http://pastebin.com/ziQrEDQd > > > > Instead of the code retrieving the struct I put into the GtkListStore, > > and printing "The ID", it prints out gibberish like: > > X�X > > > > Why is this happening? Is it a problem with GTK3 or Vala? > > You need to define mystruct2 as MyStruct? (on line 16). I don't know > whether valac can do something about this (warn, or do the right thing > automatically) but there is probably a bug filed about this. > > > This is a subtle behavior because Vala produces correct code. The fact > is that gtk wants a double pointer to the struct because it actually > allocates the struct internally.
Many thanks :) -- Andrew _______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
