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.
This commit is contained in:
Robin Gareus 2019-01-02 17:37:03 +01:00
parent ac9329f907
commit 6f01598297
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
16 changed files with 36 additions and 0 deletions

View file

@ -1257,6 +1257,7 @@ void
ExportVideoDialog::open_outfn_dialog ()
{
Gtk::FileChooserDialog dialog(_("Save Exported Video File"), Gtk::FILE_CHOOSER_ACTION_SAVE);
Gtkmm2ext::add_volume_shortcuts (dialog);
dialog.set_filename (outfn_path_entry.get_text());
dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
@ -1277,6 +1278,7 @@ void
ExportVideoDialog::open_invid_dialog ()
{
Gtk::FileChooserDialog dialog(_("Save Exported Video File"), Gtk::FILE_CHOOSER_ACTION_SAVE);
Gtkmm2ext::add_volume_shortcuts (dialog);
dialog.set_filename (invid_path_entry.get_text());
dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);