summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-12-19 22:16:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-12-19 22:16:58 +0000
commite9f1b1287b62bfa4b1c2dc1113e37be125c60eed (patch)
tree963a32fa04fee327aadbc54e1fca200aaaa1d14b /gtk2_ardour
parent2b8fc2a43b155d9a22d68554508181dd0894b69d (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc4
1 files changed, 3 insertions, 1 deletions
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();