diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-01 22:06:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-01 22:06:45 +0200 |
commit | 001e4ca6840077c599fc61b174026134e2c2cb1b (patch) | |
tree | eb7244d80f0b60cca35267203ed27463efdf59dc /gtk2_ardour | |
parent | 9f0caacc5cb47597f0452d62396b2bdb907f72c1 (diff) |
Engine Dialog: focus OK button (press enter to cont w/previous settings)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/engine_dialog.cc | 7 | ||||
-rw-r--r-- | gtk2_ardour/engine_dialog.h | 1 |
2 files changed, 8 insertions, 0 deletions
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 @@ -301,6 +301,13 @@ EngineControl::EngineControl () } void +EngineControl::on_show () +{ + ArdourDialog::on_show (); + ok_button->grab_focus(); +} + +void EngineControl::on_response (int response_id) { ArdourDialog::on_response (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 (); |