[EMAIL PROTECTED] wrote: > I have a global variable used to store a filename got from a gtk_file_selection; > now, when the gtk_file_selection object is destroyed, the memory allocated to the variable > is corrupted, changing its value.
Hi, the gtk_file_selection gives you a pointer to its internal data for the filename. If you want to keep the filename after you've destroyed the widget, you need to take a copy with g_strdup(). John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
