summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_fx_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-14 13:43:56 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-14 13:43:56 +0000
commita45aad010f6be34f1b9a28b531458e44ae2d2619 (patch)
treee0b2c938756d34d40fe2efe61efebae1b8dad919 /gtk2_ardour/time_fx_dialog.cc
parentb10d5c670936bca150c103814d81c4fc2dc63c35 (diff)
Enter activates default for the time FX dialogue (part
of #4459). git-svn-id: svn://localhost/ardour2/branches/3.0@10579 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_fx_dialog.cc')
-rw-r--r--gtk2_ardour/time_fx_dialog.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/time_fx_dialog.cc b/gtk2_ardour/time_fx_dialog.cc
index 1884a54af6..18c5203ac6 100644
--- a/gtk2_ardour/time_fx_dialog.cc
+++ b/gtk2_ardour/time_fx_dialog.cc
@@ -114,19 +114,21 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch)
l = manage (new Label (_("Octaves:"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
table->attach (*l, 1, 2, 0, 1, Gtk::FILL, Gtk::EXPAND, 0, 0);
table->attach (pitch_octave_spinner, 2, 3, 0, 1, Gtk::FILL, Gtk::EXPAND & Gtk::FILL, 0, 0);
+ pitch_octave_spinner.set_activates_default ();
l = manage (new Label (_("Semitones:"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
table->attach (*l, 1, 2, 1, 2, Gtk::FILL, Gtk::EXPAND, 0, 0);
table->attach (pitch_semitone_spinner, 2, 3, 1, 2, Gtk::FILL, Gtk::EXPAND & Gtk::FILL, 0, 0);
+ pitch_semitone_spinner.set_activates_default ();
l = manage (new Label (_("Cents:"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
pitch_cent_spinner.set_digits (1);
table->attach (*l, 1, 2, 2, 3, Gtk::FILL, Gtk::EXPAND, 0, 0);
table->attach (pitch_cent_spinner, 2, 3, 2, 3, Gtk::FILL, Gtk::EXPAND & Gtk::FILL, 0, 0);
+ pitch_cent_spinner.set_activates_default ();
table->attach (preserve_formants_button, 1, 3, 3, 4, Gtk::FILL, Gtk::EXPAND, 0, 0);
-
add_button (_("Shift"), Gtk::RESPONSE_ACCEPT);
upper_button_box.pack_start (*table, false, true);
@@ -164,6 +166,8 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch)
upper_button_box.pack_start (*table, false, true);
}
+ set_default_response (Gtk::RESPONSE_ACCEPT);
+
VBox* progress_box = manage (new VBox);
progress_box->set_spacing (6);
@@ -179,7 +183,6 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch)
get_vbox()->pack_start (*vbox, false, false);
-
show_all_children ();
}