Re: GtkFileSelection



Hi,

On Tue, 25 Mar 2003, Axel wrote:
> so i don' t think being wrong.
> so the handler to use shoud be
> 
> void store_filename (GtkButton *ok_button, GtkFileSelection){ }
> and the connect :
> g..connect(GTK_OBJECT (file_selector->ok_button),"clicked",G_CALLBACK
> (store_filename),file_selector); 

	Yes, that looks better.

> but I don' t like that, because I d like to store filename in another
> variable that i can pass to create_file_selection() or in another way,
> not a local variable to store_filename() 
> How could I do?

	I don't believe there's a "create_file_selection ()" variant that
allows to set the initial file, if that's what you're asking for.  But
won't a subsequent call to gtk_file_selection_set_filename () after you've
created the file_selection be the same thing?

Ray







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