Re: variable newbie problem
- From: John Cupitt ng-london org uk
- To: dchiod inwind it
- Cc: gtk-list gnome org
- Subject: Re: variable newbie problem
- Date: Tue, 19 Feb 2002 11:25:08 -0000
dchiod inwind it 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]