projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9be64f2
)
ArdourButton should call the focus handler of CairoWidget from its button press event
author
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 16 Sep 2014 16:45:21 +0000
(12:45 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 16 Sep 2014 16:45:21 +0000
(12:45 -0400)
gtk2_ardour/ardour_button.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/ardour_button.cc
b/gtk2_ardour/ardour_button.cc
index 2390d971dd6802eb40b47b4e3986c92bd1b0b4db..f3f7789f4670d2fac6ea383f240da8d9d1575ceb 100644
(file)
--- a/
gtk2_ardour/ardour_button.cc
+++ b/
gtk2_ardour/ardour_button.cc
@@
-753,6
+753,8
@@
ArdourButton::set_led_left (bool yn)
bool
ArdourButton::on_button_press_event (GdkEventButton *ev)
{
+ focus_handler ();
+
if ((_elements & Indicator) && _led_rect && _distinct_led_click) {
if (ev->x >= _led_rect->x && ev->x < _led_rect->x + _led_rect->width &&
ev->y >= _led_rect->y && ev->y < _led_rect->y + _led_rect->height) {