Remove unused variable.
authorCarl Hetherington <carl@carlh.net>
Wed, 10 Jun 2009 21:09:46 +0000 (21:09 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 10 Jun 2009 21:09:46 +0000 (21:09 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5157 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor.cc
gtk2_ardour/editor.h
gtk2_ardour/editor_mouse.cc

index 1fb22b20eda275633983bcc49ed3f50820813d7c..a984f6129ef8c7937e156af09f179db469021fe0 100644 (file)
@@ -354,7 +354,6 @@ Editor::Editor ()
        no_region_list_redisplay = false;
        resize_idle_id = -1;
 
-       _scrubbing = false;
        scrubbing_direction = 0;
 
        sfbrowser = 0;
index f2b21a020e897665eb54b1981a95d91f6165fed1..c96e3768d76ff698dcf8cc7434109087c76e436c 100644 (file)
@@ -1364,7 +1364,6 @@ class Editor : public PublicEditor
        void start_scrolling ();
        void stop_scrolling ();
 
-       bool _scrubbing;
        double last_scrub_x;
        int scrubbing_direction;
        int scrub_reversals;
index ec8d0a81e01f688ce57fc17b275e06c346d4fc50..baa9d1aa457ba549ecdb7008ff8a02b52439d834 100644 (file)
@@ -1369,7 +1369,6 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
                        break;
                        
                case MouseAudition:
-                       _scrubbing = false;
                        track_canvas->get_window()->set_cursor (*current_canvas_cursor);
                        if (scrubbing_direction == 0) {
                                /* no drag, just a click */
@@ -1465,7 +1464,7 @@ Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
 
                        fraction = 1.0 - (cp->get_y() / cp->line().height());
 
-                       if (is_drawable() && !_scrubbing) {
+                       if (is_drawable() && dynamic_cast<ScrubDrag*> (_drag) == 0) {
                                track_canvas->get_window()->set_cursor (*fader_cursor);
                        }