#export G_DEBUG=fatal_criticals
-export ARDOUR_PATH=./glade:./pixmaps:`pwd`:`cd ../ && pwd`
+export ARDOUR_PATH=./glade:./pixmaps:.:..
export LD_LIBRARY_PATH=../libs/ardour:../libs/midi++2:../libs/pbd3:../libs/soundtouch:../libs/gtkmm2ext:../libs/sigc++2:../libs/glibmm2:../libs/gtkmm2/atk:../libs/gtkmm2/pango:../libs/gtkmm2/gdk:../libs/gtkmm2/gtk:../libs/libgnomecanvasmm:../libs/libglademm:$LD_LIBRARY_PATH
m_treeview->get_selection()->set_mode (Gtk::SELECTION_SINGLE);
}
-
- std::string path = ARDOUR::find_config_file (X_("templates"));
- if (path != "") {
+ std::string path = ARDOUR::get_user_ardour_path() + X_("templates/");
+ if (path == Glib::ustring()) {
+ path = ARDOUR::get_system_data_path() + X_("templates/");
+ }
+ if (path != Glib::ustring()) {
m_template->set_current_folder (path);
}
-
m_template->set_show_hidden (true);
m_new_session_dialog->set_response_sensitive (Gtk::RESPONSE_OK, false);
m_new_session_dialog->set_response_sensitive (0, false);
m_treeview->signal_row_activated().connect (mem_fun (*this, &NewSessionDialog::recent_row_activated));
m_open_filechooser->signal_selection_changed ().connect (mem_fun (*this, &NewSessionDialog::file_chosen));
m_template->signal_selection_changed ().connect (mem_fun (*this, &NewSessionDialog::template_chosen));
+ m_name->grab_focus();
}
void