[hyena] ListView: Keep the "view" class for the complete rendering



commit fe8045e75e57c8023bdc820eb85b589326bbd6df
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sat Jun 14 18:12:23 2014 +0200

    ListView: Keep the "view" class for the complete rendering
    
    We need to keep the "view" class for the whole ListView rendering,
    because some styling might be applicable when rendering elements inside
    the widget: headers, cells, etc.
    
    This is the way the standard TreeView does it, it only removes the
    "view" class for drawing sub-windows.

 .../Hyena.Data.Gui/ListView/ListView_Rendering.cs  |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs 
b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index dff6ceb..f2671bc 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -123,13 +123,12 @@ namespace Hyena.Data.Gui
                     QueueResize ();
                 }
             }
-            // treview style
-            StyleContext.Save ();
 
+            // TreeView style
+            StyleContext.Save ();
             StyleContext.AddClass ("view");
             StyleContext.RenderBackground (cr, 0, 0, Allocation.Width, Allocation.Height);
             StyleContext.RenderFrame (cr, 0, 0, Allocation.Width, Allocation.Height);
-            StyleContext.RemoveClass ("view");
 
             // FIXME: ViewLayout will never be null in the future but we'll need
             // to deterministically render a header somehow...


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