Enter activates default for the time FX dialogue (part
authorCarl Hetherington <carl@carlh.net>
Mon, 14 Nov 2011 13:43:56 +0000 (13:43 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 14 Nov 2011 13:43:56 +0000 (13:43 +0000)
of #4459).

git-svn-id: svn://localhost/ardour2/branches/3.0@10579 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/time_fx_dialog.cc

index 1884a54af6353e3d2a2ddc477d34d58c94794db5..18c5203ac6a32ae04f019a8e046d99c54b8d5df5 100644 (file)
@@ -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 ();
 }