mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Make Enter give RESPONSE_ACCEPT in the normalize dialogue (#3937).
git-svn-id: svn://localhost/ardour2/branches/3.0@9293 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d8e5aac532
commit
4d8dc5c9ca
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ NormalizeDialog::NormalizeDialog (bool more_than_one)
|
||||||
_spin->set_range (-112, 0);
|
_spin->set_range (-112, 0);
|
||||||
_spin->set_increments (0.1, 1);
|
_spin->set_increments (0.1, 1);
|
||||||
_spin->set_value (_last_normalization_value);
|
_spin->set_value (_last_normalization_value);
|
||||||
|
_spin->set_activates_default ();
|
||||||
hbox->pack_start (*_spin, false, false);
|
hbox->pack_start (*_spin, false, false);
|
||||||
hbox->pack_start (*manage (new Label (_("dbFS"))), false, false);
|
hbox->pack_start (*manage (new Label (_("dbFS"))), false, false);
|
||||||
get_vbox()->pack_start (*hbox);
|
get_vbox()->pack_start (*hbox);
|
||||||
|
|
@ -69,6 +70,7 @@ NormalizeDialog::NormalizeDialog (bool more_than_one)
|
||||||
|
|
||||||
add_button (Stock::CANCEL, RESPONSE_CANCEL);
|
add_button (Stock::CANCEL, RESPONSE_CANCEL);
|
||||||
add_button (_("Normalize"), RESPONSE_ACCEPT);
|
add_button (_("Normalize"), RESPONSE_ACCEPT);
|
||||||
|
set_default_response (RESPONSE_ACCEPT);
|
||||||
|
|
||||||
signal_response().connect (sigc::mem_fun (*this, &NormalizeDialog::button_clicked));
|
signal_response().connect (sigc::mem_fun (*this, &NormalizeDialog::button_clicked));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue