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.cc | |
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.cc')
-rw-r--r-- | gtk2_ardour/ardour_display.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour_display.cc b/gtk2_ardour/ardour_display.cc index ef845258ac..40fe30899a 100644 --- a/gtk2_ardour/ardour_display.cc +++ b/gtk2_ardour/ardour_display.cc @@ -52,8 +52,6 @@ using namespace std; ArdourDisplay::ArdourDisplay (Element e) { - signal_button_press_event().connect (sigc::mem_fun(*this, &ArdourDisplay::on_mouse_pressed)); - add_elements(e); add_elements(ArdourButton::Menu); add_elements(ArdourButton::Text); @@ -64,7 +62,7 @@ ArdourDisplay::~ArdourDisplay () } bool -ArdourDisplay::on_mouse_pressed (GdkEventButton*) +ArdourDisplay::on_button_press_event (GdkEventButton*) { _menu.popup (1, gtk_get_current_event_time()); return true; |