mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-18 03:15:52 +01:00
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
This commit is contained in:
parent
0bc6a319f1
commit
a54d090992
1 changed files with 4 additions and 20 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue