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
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user