diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-06 01:40:17 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-10 15:27:11 +0200 |
commit | 8427faf1fb7f704c4d3161ab80639e685845508b (patch) | |
tree | dbdf64b8d48c275b0d293703fc4708d419e6087e /gtk2_ardour/rc_option_editor.cc | |
parent | 6d0907089550571628b35774c371f2bbdd576fef (diff) |
proper peak-indicator threshold config widget
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 4edf1a04f4..1b7bb3ebc4 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -1938,13 +1938,18 @@ RCOptionEditor::RCOptionEditor () add_option (S_("Preferences|GUI"), mlu); - add_option (S_("Preferences|GUI"), - new FaderOption ( - "meter-peak", - _("Meter Peak Threshold"), - sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_peak), - sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_peak) - )); + Gtk::Adjustment *mpk = manage (new Gtk::Adjustment(-.1, -10, 0, .01, .1)); + HSliderOption *mpks = new HSliderOption("meter-peak", _("Meter peak threshold [dBFS]"), + mpk, + sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_peak), + sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_peak) + ); + + Gtkmm2ext::UI::instance()->set_tip + (mpks->tip_widget(), + _("Specify the audio signal level in dbFS at and above which the meter-peak indicator will flash red.")); + + add_option (S_("Preferences|GUI"), mpks); } void |