major changes to Region, AudioRegion, Playlist, AudioPlaylist and Crossfade state...
[ardour.git] / gtk2_ardour / redirect_automation_line.cc
index fb79c1288b7398c08b7177b9ec1f24e054c621ac..1ea5013295ef79d445483a5d0ba9be616d05a65f 100644 (file)
 
 using namespace std;
 using namespace ARDOUR;
-
-RedirectAutomationLine::RedirectAutomationLine (string name, Redirect& rd, uint32_t port, Session& s,
-                                               TimeAxisView& tv, GnomeCanvasItem* parent,
-                                               AutomationList& l,
-                                               gint (*point_callback)(GnomeCanvasItem*, GdkEvent*, gpointer),
-                                               gint (*line_callback)(GnomeCanvasItem*, GdkEvent*, gpointer))
-
-       : AutomationLine (name, tv, parent, l, point_callback, line_callback),
+using namespace PBD;
+
+RedirectAutomationLine::RedirectAutomationLine (const string & name, Redirect& rd, uint32_t port, Session& s,
+                                               
+                                               TimeAxisView& tv, ArdourCanvas::Group& parent,
+                                               
+                                               AutomationList& l)
+  
+        : AutomationLine (name, tv, parent, l),
          session (s),
          _redirect (rd),
          _port (port)
 {
-       set_verbose_cursor_uses_gain_mapping (false);
+        set_verbose_cursor_uses_gain_mapping (false);
 
        PluginInsert *pi;
        Plugin::ParameterDescriptor desc;
@@ -54,7 +55,7 @@ RedirectAutomationLine::RedirectAutomationLine (string name, Redirect& rd, uint3
                /*NOTREACHED*/
        }
 
-       pi->plugin().get_parameter_descriptor (_port, desc);
+       pi->plugin()->get_parameter_descriptor (_port, desc);
 
        upper = desc.upper;
        lower = desc.lower;