]> Pileus Git - ~andy/gtk/commitdiff
win32: Fix listview checkbox prelight problems
authorAlexander Larsson <alexl@redhat.com>
Thu, 15 Mar 2012 19:43:27 +0000 (20:43 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 15 Mar 2012 20:12:37 +0000 (21:12 +0100)
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

index bf49f574eae8129af7b05dad1a550aa5cfb2ac19..59792a2f1f7e3fc96ce452eccf0aa630de80e1ec 100644 (file)
@@ -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);
 }