make button events on automation tracks work again (control event drags are still...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 11 Jun 2009 16:46:03 +0000 (16:46 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 11 Jun 2009 16:46:03 +0000 (16:46 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5171 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/automation_time_axis.cc
gtk2_ardour/editor_canvas_events.cc
gtk2_ardour/editor_mouse.cc

index e72c5add00d7d1dac68598d709aaa9fea7e9ed4e..5a63c76b98bb66235df9cfe195c010ee38b5ae5d 100644 (file)
@@ -104,7 +104,7 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Ro
                        mem_fun (_editor, &PublicEditor::canvas_automation_track_event),
                        _base_rect, this));
 
-       _base_rect->lower_to_bottom();
+       // _base_rect->lower_to_bottom();
 
        hide_button.add (*(manage (new Gtk::Image (::get_icon("hide")))));
 
index b86ba76f8308c24d9ffcdeb782e55745ba0c3ec4..a7fbdec926991c9b07d8abb3e9b911fe3fa81410 100644 (file)
@@ -343,7 +343,6 @@ Editor::canvas_automation_track_event (GdkEvent *event, ArdourCanvas::Item* item
 {
        bool ret = false;
 
-       
        switch (event->type) {
        case GDK_BUTTON_PRESS:
        case GDK_2BUTTON_PRESS:
index baa9d1aa457ba549ecdb7008ff8a02b52439d834..d29f462bd6d35ebea4af2c27780832c6e0ec44e3 100644 (file)
@@ -1326,10 +1326,10 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
                case MouseObject:
                        switch (item_type) {
                        case AutomationTrackItem:
-                               atv = dynamic_cast<AutomationTimeAxisView*>(clicked_routeview);
+                               atv = dynamic_cast<AutomationTimeAxisView*>(clicked_axisview);
                                if (atv) {
                                        atv->add_automation_event (item, event, where, event->button.y);
-                               }
+                               } 
                                return true;
                                
                                break;