Re: GTK/GNOME PRGRAMMING BOOK BY Peter Wright



Richard,

If you look at the "File Dialog OK Handler" section, function FileDlgOK
you should see a "gchar * SelectedFile;" This pointer gives you access 
to the file name selected with the dialog. As written, the filename is 
lost at the end of the FileDlgOK function. The simplest way to return 
the filename to your code would be with a global variable; although there
are better ways to do the same thing. (brain hurts right now :-)

Hope that helps,
 Sean


On Tue, Dec 10, 2002 at 03:22:10AM -0600, Richard Carranza wrote:
> I have a question about the book by Peter Wright:  GTK+/GNOME 
> Programming.  I am interested in using the program filedlg.c in Mr 
> Wright's book.  However I am writing my own program too, and I am 
> interested in transferring the data from the variable SelectedFile in 
> filedlg to my program, so that my program can use the info, that is the 
> path to the selected file.  I have no clue how to pass the data from Mr 
> Wrights program to my program.  Please help.
> 
> -- 
> Cordially yours,
> Richard Carranza
> TEL 713.864.7247
> FAX 713.864.7247
> CEL 713.459.1553
> http://richard_carranza.tripod.com
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]