From: Paul Davis Date: Wed, 19 Dec 2012 22:16:58 +0000 (+0000) Subject: make "OK" button in memory-limit dialog be the default widget so that return closes... X-Git-Tag: 3.0~414 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=e9f1b1287b62bfa4b1c2dc1113e37be125c60eed;p=ardour.git make "OK" button in memory-limit dialog be the default widget so that return closes the dialog git-svn-id: svn://localhost/ardour2/branches/3.0@13688 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 831e95c997..07a57dfd32 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -686,12 +686,14 @@ ARDOUR_UI::check_memory_locking () "and it is normally controlled by /etc/security/limits.conf"), PROGRAM_NAME).c_str()); + msg.set_default_response (RESPONSE_OK); + VBox* vbox = msg.get_vbox(); HBox hbox; CheckButton cb (_("Do not show this window again")); cb.signal_toggled().connect (sigc::mem_fun (*this, &ARDOUR_UI::no_memory_warning)); - + hbox.pack_start (cb, true, false); vbox->pack_start (hbox); cb.show();