summaryrefslogtreecommitdiff
path: root/gtk2_ardour/template_dialog.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/template_dialog.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/template_dialog.cc')
-rw-r--r--gtk2_ardour/template_dialog.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/template_dialog.cc b/gtk2_ardour/template_dialog.cc
index e250791b62..82e376a5bf 100644
--- a/gtk2_ardour/template_dialog.cc
+++ b/gtk2_ardour/template_dialog.cc
@@ -44,6 +44,7 @@
#include "pbd/xml++.h"
#include "gtkmm2ext/gui_thread.h"
+#include "gtkmm2ext/utils.h"
#include "ardour/filename_extensions.h"
#include "ardour/filesystem_paths.h"
@@ -490,6 +491,7 @@ TemplateManager::export_all_templates ()
g_clear_error (&err);
FileChooserDialog dialog(_("Save Exported Template Archive"), FILE_CHOOSER_ACTION_SAVE);
+ Gtkmm2ext::add_volume_shortcuts (dialog);
dialog.set_filename (X_("templates"));
dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);