Re: GtkFileChooser: How to select files that are inside subfolders?
- From: Ian Liu Rodrigues <ian liu88 gmail com>
- To: Phong Cao <phngcv gmail com>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: GtkFileChooser: How to select files that are inside subfolders?
- Date: Mon, 6 Jun 2011 16:35:28 -0300
GtkFileChooser is merely a path selector. You can retrieve the path
chosen by the user by calling gtk_file_chooser_get_file* family of
functions. After that you do what you want with them.
See g_dir_open, g_dir_read_name and g_file_test.
On Sun, Jun 5, 2011 at 11:40 PM, Phong Cao <phngcv gmail com>
I am trying to develop a music manager that lets the users import all audio files from a folder. That folder may contain many subfolders, and each subfolder may contain many files. I know that I need to create a GtkFileChooser Dialog with GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER enabled so that the user can choose folders instead of files.
However, I do not know how to make this GtkFileChooser selects/imports all the files available in that directory (not only the files that are shown in the GtkFileChooser but the files that are deeply contained inside subfolders).
Here is a screenshot of the application. How can I make GtkFileChooser imports all the files that are deeply contained inside this "firefox" folder?
Thank you for reading my questions! I hope you guys have a good day!
gtk-list mailing list
gtk-list gnome org
] [Thread Prev