Expose mixer window screenshot method as Lua binding
[ardour.git] / gtk2_ardour / editor_canvas.cc
index 1f8e81e7aa63a4b20a7a7643838522eb6aef8219..f10ee20890da06ca07493dc8c4bd11183b4e8417 100644 (file)
@@ -252,8 +252,8 @@ Editor::initialize_canvas ()
        // Drag-N-Drop from the region list can generate this target
        target_table.push_back (TargetEntry ("regions"));
 
-       target_table.push_back (TargetEntry ("text/plain"));
        target_table.push_back (TargetEntry ("text/uri-list"));
+       target_table.push_back (TargetEntry ("text/plain"));
        target_table.push_back (TargetEntry ("application/x-rootwin-drop"));
 
        _track_canvas->drag_dest_set (target_table);
@@ -373,7 +373,7 @@ Editor::track_canvas_drag_data_received (const RefPtr<Gdk::DragContext>& context
                                         const SelectionData& data,
                                         guint info, guint time)
 {
-       if (ARDOUR_UI_UTILS::no_engine_notify ()) {
+       if (!ARDOUR_UI_UTILS::engine_is_running ()) {
                return;
        }
        if (data.get_target() == "regions") {
@@ -525,7 +525,7 @@ Editor::maybe_autoscroll (bool allow_horiz, bool allow_vert, bool from_headers)
 
                controls_layout.get_parent()->translate_coordinates (*toplevel,
                                                                     alloc.get_x(), alloc.get_y(),
-                                                                    wx, wy);
+                                                                    wx, wy);
 
                scrolling_boundary = ArdourCanvas::Rect (wx, wy, wx + alloc.get_width(), wy + alloc.get_height());