[banshee] [DataViewChildAlbum] Highlight with theme radius



commit 2a2638e44eb593ef429929c8ff017bebde2d7953
Author: Aaron Bockover <abockover novell com>
Date:   Fri Apr 9 20:17:06 2010 -0400

    [DataViewChildAlbum] Highlight with theme radius
    
    The dark highlight was not rendered using RoundedRectangle with
    the theme radius, so fix that.

 .../Banshee.Collection.Gui/DataViewChildAlbum.cs   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
index 4db48fd..43eda16 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
@@ -154,7 +154,8 @@ namespace Banshee.Collection.Gui
                 grad.AddColorStop (0, new Color (0, 0, 0, 0.65 * a));
                 grad.AddColorStop (1, new Color (0, 0, 0, 0.15 * a));
                 cr.Pattern = grad;
-                cr.Rectangle ((Cairo.Rectangle)image_allocation);
+                CairoExtensions.RoundedRectangle (cr, image_allocation.X, image_allocation.Y,
+                    image_allocation.Width, image_allocation.Height, context.Theme.Context.Radius);
                 cr.Fill ();
                 grad.Destroy ();
 



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