Re: EuGTK - GtkFileChooserDialog
- Posted by irv Oct 23, 2010
- 1077 views
Choose one of the following constants:
GTK_FILE_CHOOSER_ACTION_OPEN, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
Use it like this:
function Save() object dlg = create(GtkFileChooserDialog,"Save this file",win, GTK_FILE_CHOOSER_ACTION_SAVE) set(dlg,"add button","gtk-cancel",-1) set(dlg,"add button","gtk-ok",1) if run(dlg) = 1 then -- end if return 1 end function
Lots of other stuff you can do with that dialog: http://library.gnome.org/devel/gtk/unstable/GtkFileChooser.html