[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: How to get a directory from the user
From:       Bas Wassink <b.wassink () ziggo ! nl>
Date:       2018-06-04 12:19:23
Message-ID: abc18995-374a-8413-44e0-ac3547e7a3be () ziggo ! nl
[Download RAW message or body]

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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic