From e6492319b13e8a2ed8e54b1ef4b4d11e8dca3da1 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 25 Aug 2015 21:55:08 +1000 Subject: Remove Apply button from Audio Setup dialog now that there is a start/stop button --- gtk2_ardour/engine_dialog.cc | 8 -------- gtk2_ardour/engine_dialog.h | 1 - 2 files changed, 9 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index d0912b0091..869c2afc6f 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -275,7 +275,6 @@ EngineControl::EngineControl () 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 */ @@ -408,9 +407,6 @@ EngineControl::on_response (int response_id) 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()' @@ -738,7 +734,6 @@ EngineControl::update_sensitivity () boost::shared_ptr 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; } @@ -833,10 +828,8 @@ EngineControl::update_sensitivity () 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); } } @@ -2502,7 +2495,6 @@ EngineControl::on_switch_page (GtkNotebookPage*, guint page_num) } else { cancel_button->set_sensitive (false); ok_button->set_sensitive (false); - apply_button->set_sensitive (false); } if (page_num == midi_tab) { diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h index 0e44d3585c..421228ea1a 100644 --- a/gtk2_ardour/engine_dialog.h +++ b/gtk2_ardour/engine_dialog.h @@ -107,7 +107,6 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList { Gtk::Button* cancel_button; Gtk::Button* ok_button; - Gtk::Button* apply_button; /* MIDI Tab */ -- cgit v1.2.3