Include Volume Paths in Ardour's PathsDialog Widget
authorRobin Gareus <robin@gareus.org>
Wed, 2 Jan 2019 16:38:34 +0000 (17:38 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 2 Jan 2019 16:40:03 +0000 (17:40 +0100)
This fixes an issue on MacOS/X. Show non-root volumes to the sidebar
as shortcuts.

libs/widgets/paths_dialog.cc

index 6d2350fa67634129464808e857d527fdaec29156..f643f66582fc2ff946a8e66df0155db8290bfbe9 100644 (file)
@@ -25,6 +25,9 @@
 
 #include "pbd/i18n.h"
 #include "pbd/pathexpand.h"
+
+#include "gtkmm2ext/utils.h"
+
 #include "widgets/paths_dialog.h"
 
 using namespace Gtk;
@@ -112,6 +115,7 @@ PathsDialog::selection_changed () {
 void
 PathsDialog::add_path() {
        Gtk::FileChooserDialog d (_("Add folder to search path"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
+       Gtkmm2ext::add_volume_shortcuts (d);
 
        std::vector<int> selection = paths_list_view.get_selected();
        if (selection.size() == 1 ) {