start_stop_button.set_can_focus(true);
cancel_button = add_button (Gtk::Stock::CLOSE, Gtk::RESPONSE_CANCEL);
- apply_button = add_button (Gtk::Stock::APPLY, Gtk::RESPONSE_APPLY);
ok_button = add_button (Gtk::Stock::OK, Gtk::RESPONSE_OK);
/* Pick up any existing audio setup configuration, if appropriate */
ArdourDialog::on_response (response_id);
switch (response_id) {
- case RESPONSE_APPLY:
- push_state_to_backend (true);
- break;
case RESPONSE_OK:
#ifdef PLATFORM_WINDOWS
// For some reason we don't understand, 'hide()'
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
if (!backend) {
ok_button->set_sensitive (false);
- apply_button->set_sensitive (false);
start_stop_button.set_sensitive (false);
return;
}
if (valid || !_have_control) {
ok_button->set_sensitive (true);
- apply_button->set_sensitive (true);
} else {
ok_button->set_sensitive (false);
- apply_button->set_sensitive (false);
}
}
} else {
cancel_button->set_sensitive (false);
ok_button->set_sensitive (false);
- apply_button->set_sensitive (false);
}
if (page_num == midi_tab) {