GNOME Bugzilla – Bug 727487
Color picker check marks not cleared properly
Last modified: 2014-04-14 05:19:19 UTC
Created attachment 273461 [details] Screenshot Selecting another color swatch does not clear the check mark from the previously selected one. The check mark is only cleared when that swatch is redrawn (e.g. through hover or focus change). gtk3 3.12.0 Thinkpad X220t (Arch Linux x86_64, Intel graphics)
not happening here.
Created attachment 274157 [details] A small program demonstrating the bug I'm able to reproduce this bug. I have created a small program that demonstrates this by creating a single window with a GtkColorChooserWidget. This will run as expected when the bright Adwaita theme is used, but not when the dark theme or no theme is used (ie. when GTK_DATA_PREFIX is set to an empty string). When using the dark Adwaita theme the behavior matches the screenshot in the original post. When no theme is used the behavior is a bit different; then the selected swatch will not have the checkbox drawn until it looses focus, but the previously selected swatches will still have them.
Created attachment 274158 [details] [review] Proposed patch Here is a patch that attempts to fix the problem. The previously selected swatch and the currently selected swatch are redrawn when a swatch is selected.