From 7e97dce946301d1a8c22de6a1e32702a3d19889a Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 15 Mar 2012 20:43:27 +0100 Subject: [PATCH] win32: Fix listview checkbox prelight problems We only support the preview state for checkboxes for GtkButton because it gave problems when used in treeview where the prelight state affects all checkboxes in the row. --- gtk/gtk-win32-base.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk/gtk-win32-base.css b/gtk/gtk-win32-base.css index bf49f574ea..59792a2f1f 100644 --- a/gtk/gtk-win32-base.css +++ b/gtk/gtk-win32-base.css @@ -162,7 +162,11 @@ GtkAssistant .sidebar .highlight { background-image: -gtk-win32-theme-part(button, 3 4); } -.check:prelight { +/* The GtkButton here is to avoid problems with checkboxes + in a listview where all checkboxes in a row gets prelighted + whenever the row is prelighted */ + +GtkButton.check:prelight { background-image: -gtk-win32-theme-part(button, 3 2); } @@ -174,7 +178,7 @@ GtkAssistant .sidebar .highlight { background-image: -gtk-win32-theme-part(button, 3 8); } -.check:active:prelight { +GtkButton.check:active:prelight { background-image: -gtk-win32-theme-part(button, 3 6); }