Re: Error inserting a graph widget in a custom glade widget
- From: Jean Bréfort <jean brefort normalesup org>
- To: Antonio Álvarez Feijoo <aalvarez igalia com>
- Cc: gnumeric-list gnome org
- Subject: Re: Error inserting a graph widget in a custom glade widget
- Date: Wed, 02 Apr 2008 18:42:27 +0200
It does not work because your data don't exist anymore when the plot is
rendered. go_data_vector_val_new does not make a copy of the values, so
that when your function returns, the data are not anymore valid. You
have two options: use "static" local data, or make a copy, allocating
the memory with g_new and passing g_free as the last argument of
go_data_vector_val_new.
The same applies for the strings. It just work for the strings, because
they are effectively stored in a static place.
I knwo we need more documentation, may be a sane occupation this summer
Best regards,
Jean
Le mercredi 02 avril 2008 à 10:59 +0200, Antonio Álvarez Feijoo a
écrit :
Thanks Emmanuel for your help.
I have uploaded a test application here:
http://blogs.igalia.com/aalvarez/wp-content/uploads/2008/04/test.zip
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]