GNOME Bugzilla – Bug 780327
GtkCalendar: Changes to CSS are not applied until the window is redrawn
Last modified: 2017-07-06 19:08:37 UTC
Title says it all. When experimenting with CSS using the Inspector, it doesn't take effect until the application window containing the GtkCalendar is refocused.
redrawn != refocused. which one is it ? and why is it a problem ?
Sorry, "refocused" was a bad way of saying toggled between backdrop and foreground states, or other things that trigger a redraw. I guess this is because the calendar messes with the StyleContext during draw, and probably can't be avoided under its current weird model, and wouldn't be a problem if it were replaced or reimplemented using first-class widgets - as appears to be the current trend. So I guess this doesn't really matter, and anyone who really wants to tinker with CSS on GtkCalendar can toggle the window state, or make themselves a redraw button or something.