[hyena/gtk3] ListView: fix default cell background colour



commit fd1adee656c0cb8be825f5e9b02c686cb1e46e3f
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Wed Aug 7 16:22:25 2013 +0200

    ListView: fix default cell background colour
    
    In Banshee's GTK2, the default cell background colour is white (taking
    in account the default theme of Ubuntu 13.04). In Banshee's GTK3 however,
    this was being drawn as grey, the same grey that is used for RulesHint
    enabled rows and SortedColumn rows, so it was preventing the latter
    effects to work. By using the "cell" StyleContext [1] instead of the
    "view" one [2], this appears to be fixed.
    
    [1] https://developer.gnome.org/gtk3/3.5/GtkStyleContext.html#GTK-STYLE-CLASS-CELL:CAPS
    [2] https://developer.gnome.org/gtk3/3.5/GtkStyleContext.html#GTK-STYLE-CLASS-VIEW:CAPS

 .../Hyena.Data.Gui/ListView/ListView_Rendering.cs  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs 
b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index ff7bb2c..852f2cb 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -132,7 +132,7 @@ namespace Hyena.Data.Gui
             }
             // treview style
             StyleContext.Save ();
-            StyleContext.AddClass ("view");
+            StyleContext.AddClass ("cell");
 
             StyleContext.RenderBackground (cr, 0, 0, Allocation.Width, Allocation.Height);
 


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