[Glade-users] gtk.FILE_CHOOSER_ACTION_OPEN / SELECT_FOLDER
    Tadej Borovšak 
    tadeboro at gmail.com
       
    Sat Sep 12 14:14:01 EDT 2009
    
    
  
Hi.
>> Just select your file chooser button in Glade, scroll down to the
>> bottom of the "General" tab and set "Action" property to "Select
>> folder".
>
> Yes, i have seen this.
> But in my program, sometime i want to select folder, sometime only one file
> with the same button. How can i switch this property "Select_Folder / Open"
> ?
For runtime changes, you'll have to do the switch using
gtk_file_chooser_set_action [1]. Glade cannot help you here.
Tadej
 [1] http://library.gnome.org/devel/gtk/unstable/GtkFileChooser.html#gtk-file-chooser-set-action
-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro at gmail.com
tadej.borovsak at gmail.com
    
    
More information about the Glade-users
mailing list