[hyena] ListView: Draw overall frame through StyleContext



commit 729c696d640b0316a0ff1d62c1ead203b8361f99
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Thu Jun 12 16:32:37 2014 +0200

    ListView: Draw overall frame through StyleContext
    
    With the default Adwaita theme, the standard treeview does not have a
    frame around it. So use StyleContext.RenderFrame so that we follow the
    theme.

 .../Hyena.Data.Gui/ListView/ListView_Rendering.cs  |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs 
b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index 218eb91..3ac2d60 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -137,6 +137,7 @@ namespace Hyena.Data.Gui
 
             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
@@ -156,8 +157,6 @@ namespace Hyena.Data.Gui
                 }
             }
 
-            Theme.DrawFrameBorder (cr, Allocation);
-
             PaintDraggingColumn (cr);
             StyleContext.Restore ();
             return true;


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