From 6f0159829758a3677c53ce0d8e7fc47703ecabc3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 2 Jan 2019 17:37:03 +0100 Subject: 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. --- gtk2_ardour/pt_import_selector.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk2_ardour/pt_import_selector.cc') 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 #include #include + #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); -- cgit v1.2.3