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_dropdown.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_dropdown.h')
-rw-r--r-- | gtk2_ardour/ardour_dropdown.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_dropdown.h b/gtk2_ardour/ardour_dropdown.h index b9144c97f7..9d96e575f0 100644 --- a/gtk2_ardour/ardour_dropdown.h +++ b/gtk2_ardour/ardour_dropdown.h @@ -36,7 +36,7 @@ class ArdourDropdown : public ArdourButton ArdourDropdown (Element e = default_elements); virtual ~ArdourDropdown (); - bool on_mouse_pressed (GdkEventButton*); + bool on_button_press_event (GdkEventButton*); void AddMenuElem (Gtk::Menu_Helpers::MenuElem e); |