diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-29 20:45:08 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-29 20:45:08 +0000 |
commit | 35dbce03499ec7ffae2bdd5b83a4d097f2bc3ffb (patch) | |
tree | 173e8bc5cef3a82d8653ddda37f88c47ff397a8d | |
parent | c42c57e5fd0b6512a35463b6bb11c13b6307e8dc (diff) |
(OS X) make /Volumes show up in 1 extra location in the new session dialog
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7020 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/new_session_dialog.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc index 98ff6a2586..0bfa96eb51 100644 --- a/gtk2_ardour/new_session_dialog.cc +++ b/gtk2_ardour/new_session_dialog.cc @@ -400,7 +400,7 @@ NewSessionDialog::NewSessionDialog() //if SYSTEM template folder exists, add it to the file chooser const std::string sys_templates_path = ARDOUR::get_system_data_path() + "/" + template_dir_name; -printf("system template path = %s\n", sys_templates_path.c_str()); + if (Glib::file_test(sys_templates_path, Glib::FILE_TEST_IS_DIR)) { m_template->add_shortcut_folder(sys_templates_path); @@ -430,10 +430,6 @@ printf("system template path = %s\n", sys_templates_path.c_str()); m_open_filechooser->set_current_folder(getenv ("HOME")); m_open_filechooser->set_title(_("select session file")); -#ifdef GTKOSX - m_open_filechooser->add_shortcut_folder_uri("file:///Volumes"); -#endif - Gtk::FileFilter* template_filter = manage (new (Gtk::FileFilter)); template_filter->add_pattern(X_("*.ardour")); template_filter->add_pattern(X_("*.ardour.bak")); @@ -443,6 +439,11 @@ printf("system template path = %s\n", sys_templates_path.c_str()); m_folder->set_current_folder(getenv ("HOME")); m_folder->set_title(_("select directory")); +#ifdef GTKOSX + m_folder->add_shortcut_folder("/Volumes"); + m_open_filechooser->add_shortcut_folder("/Volumes"); +#endif + on_new_session_page = true; m_notebook->set_current_page(0); m_notebook->show(); |