[gtk+] win32: Fix listview checkbox prelight problems



commit 7e97dce946301d1a8c22de6a1e32702a3d19889a
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Mar 15 20:43:27 2012 +0100

    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 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtk-win32-base.css b/gtk/gtk-win32-base.css
index bf49f57..59792a2 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]