diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-05 12:11:22 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-05 12:11:22 -0500 |
commit | 983bf548cdc1fb184d122c62190fb76069328a27 (patch) | |
tree | 16891daaa07b47eb9bad1ae9932718f01769cae4 /gtk2_ardour/automation_line.cc | |
parent | f5233f11a29a7bee2ba8c9b0ccaabbb4cb0166ae (diff) |
alter name of AutomationLine::show() to much more sensibly named ::update_visibility()
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 3d8c2ca3ca..fd0dd0bc10 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -138,7 +138,7 @@ AutomationLine::event_handler (GdkEvent* event) } void -AutomationLine::show () +AutomationLine::update_visibility () { if (_visible & Line) { /* Only show the line there are some points, otherwise we may show an out-of-date line @@ -1004,9 +1004,7 @@ AutomationLine::reset_callback (const Evoral::ControlList& events) line->set (line_points); - /* despite the name, this may show or hide things */ - - show(); + update_visibility (); } set_selected_points (trackview.editor().get_selection().points); @@ -1079,7 +1077,7 @@ AutomationLine::add_visibility (VisibleAspects va) _visible = VisibleAspects (_visible | va); if (old != _visible) { - show (); + update_visibility (); } } @@ -1088,7 +1086,7 @@ AutomationLine::set_visibility (VisibleAspects va) { if (_visible != va) { _visible = va; - show (); + update_visibility (); } } @@ -1100,7 +1098,7 @@ AutomationLine::remove_visibility (VisibleAspects va) _visible = VisibleAspects (_visible & ~va); if (old != _visible) { - show (); + update_visibility (); } } |