Changing active-state needs no color lookup
authorRobin Gareus <robin@gareus.org>
Sun, 1 Sep 2019 14:52:24 +0000 (16:52 +0200)
committerRobin 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

index c8316ad9256a5a9970add18f1bd402a2d11e464b..2ccded83c0af1b6d47a31c71ab4fcd766bb9160a 100644 (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 ();
        }
 }