[Glade-users] gtk.FILE_CHOOSER_ACTION_OPEN / SELECT_FOLDER



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




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