diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2014-08-28 10:31:57 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2014-08-28 10:31:57 -0500 |
commit | 3f297f7dab524dd17ef173efe41acd0ab028b0d5 (patch) | |
tree | 3c019c527403bf6dfd2fed9e1b8fe5efcee966c2 /gtk2_ardour/ardour_display.h | |
parent | 3cc19c2cce9ae7016232d28e0df3c9755ad1ca48 (diff) |
Fix ArdourButton event sequence.
Always give ArdourButton a chance to handle Press or Release events if you override them.
This allows ArdourButtons to do the "Pressed" animation
And it now correctly eats the event so button clicks don't select the channelstrip.
Diffstat (limited to 'gtk2_ardour/ardour_display.h')
-rw-r--r-- | gtk2_ardour/ardour_display.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_display.h b/gtk2_ardour/ardour_display.h index 90bd61b834..3772d5423f 100644 --- a/gtk2_ardour/ardour_display.h +++ b/gtk2_ardour/ardour_display.h @@ -39,7 +39,7 @@ class ArdourDisplay : public ArdourButton boost::shared_ptr<PBD::Controllable> get_controllable() { return binding_proxy.get_controllable(); } void set_controllable (boost::shared_ptr<PBD::Controllable> c); - bool on_mouse_pressed (GdkEventButton*); //mousedown will pop up our preset menu + bool on_button_press_event (GdkEventButton*); //mousedown will pop up our preset menu // bool on_button_press_event (GdkEventButton*); // bool on_button_release_event (GdkEventButton*); bool on_scroll_event (GdkEventScroll* ev); |