summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-05-16 02:25:36 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-05-16 02:25:36 +0000
commit45f59d0c04675839eb2613a099d05b70e2e27820 (patch)
treea0398d651f2fc65838aabe2821b50f87d49d6642 /gtk2_ardour/sfdb_ui.cc
parent700c8dc6fd4c46638277f2593e7e9c712342bafd (diff)
add alternate filters for soundfile browser
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@1849 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 00c33bf8ef..58781873e5 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -306,8 +306,14 @@ SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s)
found_list_view.get_selection()->set_mode (Gtk::SELECTION_MULTIPLE);
- filter.add_custom (Gtk::FILE_FILTER_FILENAME, mem_fun(*this, &SoundFileBrowser::on_custom));
- chooser.set_filter (filter);
+ custom_filter.add_custom (Gtk::FILE_FILTER_FILENAME, mem_fun(*this, &SoundFileBrowser::on_custom));
+ custom_filter.set_name (_("Probable audio files"));
+
+ matchall_filter.add_pattern ("*.*");
+ matchall_filter.set_name (_("All files"));
+
+ chooser.add_filter (custom_filter);
+ chooser.add_filter (matchall_filter);
chooser.set_select_multiple (true);
chooser.signal_update_preview().connect(mem_fun(*this, &SoundFileBrowser::update_preview));