From a54d090992e193fbde1ce4e28336c144b7bc3d61 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 27 Apr 2010 22:38:19 +0000 Subject: 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 --- gtk2_ardour/panner_ui.cc | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'gtk2_ardour/panner_ui.cc') 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 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: -- cgit v1.2.3