[banshee/gtk3] SourceRowRenderer: Fix arrow rendering in the source view



commit a3cf248357e8b6c9c6f4eef66d00a8b0f40642bc
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sat Jul 30 15:59:37 2011 +0200

    SourceRowRenderer: Fix arrow rendering in the source view
    
    This brings the latest Hyena, which also fixes arrow rendering in header
    cells.

 .../Banshee.Sources.Gui/SourceRowRenderer.cs       |    5 +++--
 src/Hyena                                          |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
index 574dca0..06ed285 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
@@ -173,10 +173,11 @@ namespace Banshee.Sources.Gui
             }
 
             // Draw the expander if the source has children
-            double exp_h = (cell_area.Height - 2.0*Ypad) / 3.2;
+            double exp_h = (cell_area.Height - 2.0*Ypad) / 2.0;
             double exp_w = exp_h * 1.6;
+            int y = Middle (cell_area, (int)exp_h);
             if (view != null && source.Children != null && source.Children.Count > 0) {
-                var r = new Gdk.Rectangle (x, cell_area.Y + (int)((cell_area.Height - exp_h) / 2.0), (int)exp_w, (int)exp_h);
+                var r = new Gdk.Rectangle (x, y, (int)exp_w, (int)exp_h);
                 view.Theme.DrawArrow (cr, r, source.Expanded ? Math.PI/2.0 : 0.0);
             }
 
diff --git a/src/Hyena b/src/Hyena
index 5d86c55..2794ee0 160000
--- a/src/Hyena
+++ b/src/Hyena
@@ -1 +1 @@
-Subproject commit 5d86c55bd84ad0bd2b4e506a78e0bd2b29d0425a
+Subproject commit 2794ee094b286b980592cd45c9d820ec4dd574a0



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