summaryrefslogtreecommitdiff
path: root/gtk2_ardour/panner_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-27 22:38:19 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-27 22:38:19 +0000
commita54d090992e193fbde1ce4e28336c144b7bc3d61 (patch)
treec8ec70b4f8e2af5f48b55795256c454599b40d5b /gtk2_ardour/panner_ui.cc
parent0bc6a319f10f3e7a285af627e5983bd86f6ec847 (diff)
Some dead code removal and const fixes. Also fix #2361: incorrect sensitivity of pan linkage buttons.
git-svn-id: svn://localhost/ardour2/branches/3.0@7007 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/panner_ui.cc')
-rw-r--r--gtk2_ardour/panner_ui.cc24
1 files changed, 4 insertions, 20 deletions
diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc
index 8532c2094d..88bd2b5cca 100644
--- a/gtk2_ardour/panner_ui.cc
+++ b/gtk2_ardour/panner_ui.cc
@@ -165,22 +165,6 @@ PannerUI::set_panner (boost::shared_ptr<Panner> p)
update_pan_sensitive ();
update_pan_linkage ();
pan_automation_state_changed ();
-
-#if WHERE_DOES_THIS_LIVE
- pan_bar_packer.show();
- panning_viewport.show();
- panning_up.show();
- panning_up_arrow.show();
- panning_down.show();
- panning_down_arrow.show();
- pan_vbox.show();
- panning_link_button.show();
- panning_link_direction_button.show();
- panning_link_box.show();
- pan_automation_style_button.show();
- pan_automation_state_button.show();
- show();
-#endif
}
void
@@ -265,8 +249,8 @@ PannerUI::update_pan_linkage ()
{
ENSURE_GUI_THREAD (*this, &PannerUI::update_pan_linkage)
- bool x = _panner->linked();
- bool bx = panning_link_button.get_active();
+ bool const x = _panner->linked();
+ bool const bx = panning_link_button.get_active();
if (x != bx) {
@@ -601,11 +585,11 @@ PannerUI::pan_changed (void *src)
panning_link_button.set_sensitive (false);
break;
default:
- panning_link_direction_button.set_sensitive (true);
+ panning_link_direction_button.set_sensitive (_panner->linked ());
panning_link_button.set_sensitive (true);
}
- uint32_t nouts = _panner->nouts();
+ uint32_t const nouts = _panner->nouts();
switch (nouts) {
case 0: