On Tue, 2006-08-22 at 17:20 +0200, lidiriel wrote: > Hi, > > in the PropDescription structure can i put a gpointer as extradata ? > exemple : > GList *foo; > > and in the table : > static PropDescription bar[] = { > ..., > { "fooValue", PROP_TYPE_STRINGLIST, PROP_FLAG_VISIBLE, N_("string > list"), NULL, foo}, > ... > } > > and the foo pointer will be modify in the update_object function. > > And how i made this ?? because the now i have an error "initializer > element is not constant" > Have you any idea ?
The initialization of bar is static, and so all its values must be static, but foo is not initialized statically. You could go in in the class init section and replace the extradata value. -Lars _______________________________________________ Dia-list mailing list Dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://www.gnome.org/projects/dia/faq.html Main page at http://www.gnome.org/projects/dia