add GUI elements to control 2in/2out panning. Probably not perfect. REQUIRES FULL...
[ardour.git] / gtk2_ardour / editor_canvas_events.cc
index eb37d1128273937ab26923d40133d5146a770691..5028f477894266a80ba1e534d0bcb4cc32b2c72b 100644 (file)
@@ -61,7 +61,7 @@ using Gtkmm2ext::Keyboard;
 bool
 Editor::track_canvas_scroll (GdkEventScroll* ev)
 {
-       nframes64_t xdelta;
+       framepos_t xdelta;
        int direction = ev->direction;
 
   retry:
@@ -294,7 +294,7 @@ Editor::canvas_stream_view_event (GdkEvent *event, ArdourCanvas::Item* item, Rou
        case GDK_LEAVE_NOTIFY:
                set_entered_track (0);
                break;
-
+               
        default:
                break;
        }
@@ -773,13 +773,13 @@ Editor::canvas_frame_handle_event (GdkEvent* event, ArdourCanvas::Item* item, Re
           perspective. XXX change this ??
        */
 
-        ItemType type;
+       ItemType type;
 
-        if (item->get_data ("isleft")) {
-                type = LeftFrameHandle;
-        } else {
-                type = RightFrameHandle;
-        }
+       if (item->get_data ("isleft")) {
+               type = LeftFrameHandle;
+       } else {
+               type = RightFrameHandle;
+       }
 
        switch (event->type) {
        case GDK_BUTTON_PRESS:
@@ -839,7 +839,7 @@ Editor::canvas_region_view_name_highlight_event (GdkEvent* event, ArdourCanvas::
                break;
        case GDK_MOTION_NOTIFY:
                motion_handler (item, event);
-                ret = true; // force this to avoid progagating the event into the regionview
+               ret = true; // force this to avoid progagating the event into the regionview
                break;
        case GDK_ENTER_NOTIFY:
                set_entered_regionview (rv);
@@ -1033,7 +1033,7 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const & /*c*/,
 
                double px;
                double py;
-               nframes64_t const pos = event_frame (&event, &px, &py);
+               framepos_t const pos = event_frame (&event, &px, &py);
 
                std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (py);
                if (tv.first == 0) {