[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: file_selection widget
- From: Carlos Pereira <carlos pehoe civil ist utl pt>
- To: gtk-app-devel-list redhat com
- Subject: Re: file_selection widget
- Date: Fri, 22 Oct 1999 15:22:18 +0100
Thanks a lot Eric,
however:
> > (in other words, how can I acess the pointer to the label?)
> GTK_FILE_SELECTION(file_selection)->cancel_button
I suppose this gives me the pointer to the button, which contains
the label, what I need is the pointer to the label, I am sure
there is some function (gtk_widget_get_child or so) to access the
child from the parent... I didn't find it yet though...
> > How can I set the file_selection widget to show only the files with a given
> > extension?
> gtk_file_selection_complete (GTK_FILE_SELECTION (file_selection), "*.ps");
This doesn't seem to work very well with my gtk 1.2.3! If I have this:
gtk_file_selection_complete (GTK_FILE_SELECTION (file_selection), "*.ps");
gtk_file_selection_set_filename (GTK_FILE_SELECTION (file_selection), "article.ps");
the first command is totally ignored. If I swap the order:
gtk_file_selection_set_filename (GTK_FILE_SELECTION (file_selection), "article.ps");
gtk_file_selection_complete (GTK_FILE_SELECTION (file_selection), "*.ps");
the first command is ignored, and when I change to other directories, GTK
forgets the filter and shows all the files... am I missing something?
Thanks again!
Carlos Pereira,
Technical University of Lisboa,
Portugal
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]