diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-19 21:40:23 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-19 21:40:23 +0000 |
commit | 692987ee2e4adf52722bbe47db616af7d9959065 (patch) | |
tree | 12705c7a438b9c80b595bd54076b49966a470532 /gtk2_ardour | |
parent | d1630219500305397e1608e09508872f0ab2f836 (diff) |
shift-click MotionFeedback widgets to reset to default, and monitor section SiP cut now does something (but doesn't pay attention to changes from elsewhere yet
git-svn-id: svn://localhost/ardour2/branches/3.0@6778 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/monitor_section.cc | 10 | ||||
-rw-r--r-- | gtk2_ardour/monitor_section.h | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gtk2_ardour/monitor_section.cc b/gtk2_ardour/monitor_section.cc index 5f779c6422..32a0247e99 100644 --- a/gtk2_ardour/monitor_section.cc +++ b/gtk2_ardour/monitor_section.cc @@ -62,7 +62,7 @@ MonitorSection::MonitorSection (Session* s) , dim_control (0) , solo_boost_adjustment (1.0, 1.0, 2.0, 0.01, 0.1) , solo_boost_control (0) - , solo_cut_adjustment (0.0, 0.0, 1.0, 0.01, 0.1) + , solo_cut_adjustment (0.0, 0.0, 1.0, 0.01, 0.1) , solo_cut_control (0) , solo_in_place_button (solo_model_group, _("SiP")) , afl_button (solo_model_group, _("AFL")) @@ -164,7 +164,7 @@ MonitorSection::MonitorSection (Session* s) /* Solo (SiP) cut */ solo_cut_control = new VolumeController (little_knob_pixbuf, &solo_cut_adjustment, false, 30, 30); - // solo_cut_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &MonitorSection::solo_cut_changed)); + solo_cut_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &MonitorSection::solo_cut_changed)); spin_label = manage (new Label (_("SiP Cut"))); spin_packer = manage (new VBox); @@ -865,3 +865,9 @@ MonitorSection::cancel_solo (GdkEventButton* ev) return true; } + +void +MonitorSection::solo_cut_changed () +{ + Config->set_solo_mute_gain (slider_position_to_gain (solo_cut_adjustment.get_value())); +} diff --git a/gtk2_ardour/monitor_section.h b/gtk2_ardour/monitor_section.h index 8af84988f1..ca6b546f3f 100644 --- a/gtk2_ardour/monitor_section.h +++ b/gtk2_ardour/monitor_section.h @@ -116,4 +116,5 @@ class MonitorSection : public RouteUI void solo_blink (bool); bool cancel_solo (GdkEventButton*); + void solo_cut_changed (); }; |