diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-14 13:44:05 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-14 13:44:05 +0000 |
commit | 611515ddb820590180e80c042ab67c7fd51ee829 (patch) | |
tree | 618ffbbee0bc9dfc9167e623ec05a615d9e1d7c9 /gtk2_ardour/strip_silence_dialog.cc | |
parent | eb2870eee64151f5778c06bf802b8e6bf1e5264c (diff) |
Default response for the Strip Silence dialogue (part of
#4459).
git-svn-id: svn://localhost/ardour2/branches/3.0@10581 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/strip_silence_dialog.cc')
-rw-r--r-- | gtk2_ardour/strip_silence_dialog.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/strip_silence_dialog.cc b/gtk2_ardour/strip_silence_dialog.cc index 5f9dc6441d..78e1d5cfbd 100644 --- a/gtk2_ardour/strip_silence_dialog.cc +++ b/gtk2_ardour/strip_silence_dialog.cc @@ -76,6 +76,7 @@ StripSilenceDialog::StripSilenceDialog (Session* s, list<RegionView*> const & v) _threshold.set_increments (1, 10); _threshold.set_range (-120, 0); _threshold.set_value (-60); + _threshold.set_activates_default (); table->attach (*Gtk::manage (new Gtk::Label (_("Minimum length"), 1, 0.5)), 0, 1, n, n + 1, Gtk::FILL); table->attach (*_minimum_length, 1, 2, n, n + 1, Gtk::FILL); @@ -99,6 +100,7 @@ StripSilenceDialog::StripSilenceDialog (Session* s, list<RegionView*> const & v) add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); add_button (Gtk::Stock::APPLY, Gtk::RESPONSE_OK); + set_default_response (Gtk::RESPONSE_OK); get_vbox()->pack_start (_progress_bar, true, true, 12); |