alter name of AutomationLine::show() to much more sensibly named ::update_visibility()
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 5 Mar 2014 17:11:22 +0000 (12:11 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 5 Mar 2014 17:11:22 +0000 (12:11 -0500)
gtk2_ardour/automation_line.cc
gtk2_ardour/automation_line.h

index 3d8c2ca3ca1185efa46e200e3f3dd0924d1d369f..fd0dd0bc106b66a3ddc5833037c24998e740a90f 100644 (file)
@@ -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 ();
        }
 }
 
index 3583ecdd719dba93eb54c94316425223f43357a9..dcd81c8b4eb31a10b29d4e22780ed47111f10dad 100644 (file)
@@ -218,7 +218,7 @@ private:
         */
        ARDOUR::framecnt_t _offset;
 
-       void show ();
+       void update_visibility ();
        void reset_line_coords (ControlPoint&);
        void add_visible_control_point (uint32_t, uint32_t, double, double, ARDOUR::AutomationList::iterator, uint32_t);
        double control_point_box_size ();