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

Re: file_selection widget



On Thu, 21 Oct 1999 21:30:16 +0100, Carlos Pereira wrote:
> A couple of questions about the file_selection widget:
> 
> 1) How can I change the color of the Cancel button to red?
>    (in other words, how can I acess the pointer to the label?)

  GTK_FILE_SELECTION(file_selection)->cancel_button

> 2) I would like to put my file_selection widget inside a notebook widget,
>    with a different page for each file format, together with some specific
> options. 
>    I tried to setup my file_selection as a GTK_WINDOW_POP_UP, instead
>    of GTK_WINDOW_TOPLEVEL, first it seems to work but then when I try to put
>     file_selection inside some other widget... no way...

That's because the fileselection widget is a toplevel gtk_window: it can't
be put into another widget. I think you'll have to build your own
fileselection widget if you want more.

> 3) How can I set the file_selection widget to show only the files with a given
>    extension? say, the file_selection of the .ps page of the notebook should
> show 
>    only .ps files and so on...

  gtk_file_selection_complete(GTK_FILE_SELECTION(file_selection), "*.ps");



Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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