summaryrefslogtreecommitdiff
path: root/gtk2_ardour/pt_import_selector.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-01-02 17:37:03 +0100
committerRobin Gareus <robin@gareus.org>2019-01-02 17:37:36 +0100
commit6f0159829758a3677c53ce0d8e7fc47703ecabc3 (patch)
treedc01f8006b09156991322d1e97b85d90547373dc /gtk2_ardour/pt_import_selector.cc
parentac9329f907bf011395968764c82d7c7c13675b7c (diff)
Add external drive references for most file-browsers
This fixes an issue on MacOS/X to only show non-root volumes in the file-open dialog. They're just as valid for save-as, export, video files etc. In case of a 2nd internal disk, it is also a valid choice as default folder for new sessions.
Diffstat (limited to 'gtk2_ardour/pt_import_selector.cc')
-rw-r--r--gtk2_ardour/pt_import_selector.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/pt_import_selector.cc b/gtk2_ardour/pt_import_selector.cc
index 9980321a8e..3446383f2f 100644
--- a/gtk2_ardour/pt_import_selector.cc
+++ b/gtk2_ardour/pt_import_selector.cc
@@ -22,6 +22,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <iostream>
+
#include "pbd/gstdio_compat.h"
#include "pbd/i18n.h"
#include "pbd/file_utils.h"
@@ -29,6 +30,9 @@
#include "ptformat/ptfformat.h"
#include "ardour/session_handle.h"
+
+#include "gtkmm2ext/utils.h"
+
#include "pt_import_selector.h"
using namespace Gtk;
@@ -66,6 +70,7 @@ PTImportSelector::PTImportSelector (PTFFormat& ptf) :
match_pt_filter.add_pattern ("*.ptx");
match_pt_filter.set_name (_("All PT sessions"));
+ Gtkmm2ext::add_volume_shortcuts (ptimport_ptf_chooser);
ptimport_ptf_chooser.add_filter (match_pt_filter);
ptimport_ptf_chooser.set_select_multiple (false);
//XXX ptimport_ptf_chooser.set_current_folder (dstdir);