From 001e4ca6840077c599fc61b174026134e2c2cb1b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 1 Sep 2014 22:06:45 +0200 Subject: Engine Dialog: focus OK button (press enter to cont w/previous settings) --- gtk2_ardour/engine_dialog.cc | 7 +++++++ gtk2_ardour/engine_dialog.h | 1 + 2 files changed, 8 insertions(+) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 437aea7d39..f081ce21e5 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -300,6 +300,13 @@ EngineControl::EngineControl () notebook.signal_switch_page().connect (sigc::mem_fun (*this, &EngineControl::on_switch_page)); } +void +EngineControl::on_show () +{ + ArdourDialog::on_show (); + ok_button->grab_focus(); +} + void EngineControl::on_response (int response_id) { diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h index 16de4c2766..4ace11efff 100644 --- a/gtk2_ardour/engine_dialog.h +++ b/gtk2_ardour/engine_dialog.h @@ -221,6 +221,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList { void build_full_control_notebook (); void build_no_control_notebook (); + void on_show (); void on_response (int); void control_app_button_clicked (); void use_latency_button_clicked (); -- cgit v1.2.3