make waveforms centered when height hits NAME_HIGHLIGHT_THRESHOLD
[ardour.git] / gtk2_ardour / new_session_dialog.cc
index b7b448b677391034235824faf8ec0c14bf8c6a8a..d1059cebe08f76b204cccf62f0b84cced5fa0f5d 100644 (file)
@@ -24,8 +24,6 @@
 #include <ardour/recent_sessions.h>
 #include <ardour/session.h>
 
-#include <pbd/basename.h>
-
 #include <gtkmm/entry.h>
 #include <gtkmm/filechooserbutton.h>
 #include <gtkmm/spinbutton.h>
@@ -304,6 +302,11 @@ NewSessionDialog::NewSessionDialog()
        if (!path.empty()) {
                m_template->set_current_folder (path + X_("templates/"));
        }
+
+       const std::string sys_templates_dir = ARDOUR::get_system_data_path() + X_("templates");
+       if (Glib::file_test(sys_templates_dir, Glib::FILE_TEST_IS_DIR))
+               m_template->add_shortcut_folder(sys_templates_dir);
+       
        m_template->set_title(_("select template"));
        Gtk::FileFilter* session_filter = manage (new (Gtk::FileFilter));
        session_filter->add_pattern(X_("*.ardour"));
@@ -659,7 +662,7 @@ NewSessionDialog::reset_recent()
            
                Gtk::TreeModel::Row row = *(recent_model->append());
                
-               row[recent_columns.visible_name] = PBD::basename (fullpath);
+               row[recent_columns.visible_name] = Glib::path_get_basename (fullpath);
                row[recent_columns.fullpath] = fullpath;
                
                if (states->size() > 1) {