Re: How to get a directory from the user



On 2018-06-04 14:06, Richard Shann wrote:
Hi,

I have seen GtkFileChooser for getting a file from the user, but how to
get a directory (folder)?

Richard Shann


Use gtk_file_chooser_set_action(chooser, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);

https://developer.gnome.org/gtk3/stable/GtkFileChooser.html#gtk-file-chooser-set-action
https://developer.gnome.org/gtk3/stable/GtkFileChooser.html#GtkFileChooserAction

/Compyx


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