Changing active-state needs no color lookup

Colors and patterns are cached, independent of active-state.
This didn't used to be the case in the distant ArdourButton past.
This commit is contained in:
Robin Gareus
2019-09-01 16:52:24 +02:00
parent 244df67800
commit 46bbe83400

View File

@@ -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 ();
}
}