From 35dbce03499ec7ffae2bdd5b83a4d097f2bc3ffb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 29 Apr 2010 20:45:08 +0000 Subject: (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 --- gtk2_ardour/new_session_dialog.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gtk2_ardour') 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(); -- cgit v1.2.3