projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
244df67
)
Changing active-state needs no color lookup
author
Robin Gareus
<robin@gareus.org>
Sun, 1 Sep 2019 14:52:24 +0000
(16:52 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 1 Sep 2019 14:52:24 +0000
(16:52 +0200)
Colors and patterns are cached, independent of active-state.
This didn't used to be the case in the distant ArdourButton past.
libs/widgets/ardour_button.cc
patch
|
blob
|
history
diff --git
a/libs/widgets/ardour_button.cc
b/libs/widgets/ardour_button.cc
index c8316ad9256a5a9970add18f1bd402a2d11e464b..2ccded83c0af1b6d47a31c71ab4fcd766bb9160a 100644
(file)
--- a/
libs/widgets/ardour_button.cc
+++ b/
libs/widgets/ardour_button.cc
@@
-1096,7
+1096,6
@@
ArdourButton::set_active_state (Gtkmm2ext::ActiveState s)
bool changed = (_active_state != s);
CairoWidget::set_active_state (s);
if (changed) {
- _update_colors = true;
CairoWidget::set_dirty ();
}
}