theArdourUI = this;
}
+ // allow run-time rebinding of accels
+
+ Settings::get_default()->property_gtk_can_change_accels() = true;
+
ActionManager::init ();
m_new_session_dialog = 0;
}
}
- quit();
+ quit ();
}
int
msg = string_compose(_("Save and %1"), what);
window.add_button (msg, RESPONSE_ACCEPT);
msg = string_compose(_("Just %1"), what);
- window.add_button (msg, RESPONSE_REJECT);
+ window.add_button (msg, RESPONSE_APPLY);
msg = string_compose(_("Don't %1"), what);
window.add_button (msg, RESPONSE_REJECT);
window.hide ();
switch (r) {
- case RESPONSE_ACCEPT:
+ case RESPONSE_ACCEPT: // save and get out of here
+ return 1;
+ case RESPONSE_APPLY: // get out of here
return 0;
default:
break;
FileFilter filter_ardour;
filter_ardour.set_name (_("Ardour sessions"));
- filter_ardour.add_custom (FILE_FILTER_FILENAME, mem_fun (*this, &ARDOUR_UI::filter_ardour_session_dirs));
-
+ filter_ardour.add_pattern("*.ardour");
open_session_selector->add_filter (filter_ardour);
}
std::string session_name = m_new_session_dialog->session_name();
std::string session_path = m_new_session_dialog->session_folder();
+
+ /*
+ XXX This is needed because session constructor wants a
+ non-existant path. hopefully this will be fixed at some point.
+ */
+ session_path = Glib::build_filename(session_path, session_name);
+
std::string template_name = m_new_session_dialog->session_template_name();
if (m_new_session_dialog->use_session_template()) {
}
if (session && mixer) {
- mixer->show_window ();
+ // mixer->show_window ();
}
if (about) {