[hyena/gtk3] Fix RatingEntry NRE with style property border-width



commit a7ee3e3a361234f5a684a1d1a8af662c06f6ce01
Author: Olivier Dufour <olivier duff gmail com>
Date:   Fri May 13 23:06:38 2011 +0200

    Fix RatingEntry NRE with style property border-width

 Hyena.Gui/Hyena.Widgets/RatingEntry.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Widgets/RatingEntry.cs b/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
index 78717b2..d274f67 100644
--- a/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
+++ b/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
@@ -252,9 +252,9 @@ namespace Hyena.Widgets
             metrics.Dispose ();
 
             if (HasFrame) {
-                int borderWidth = (int)StyleGetProperty ("border-width");
-                renderer.Xpad = borderWidth + (interior_focus ? focus_width : 0) + 2;
-                renderer.Ypad = borderWidth + (interior_focus ? focus_width : 0) + 2;
+				this.
+                renderer.Xpad = MarginLeft + (interior_focus ? focus_width : 0) + 2;
+                renderer.Ypad = MarginTop + (interior_focus ? focus_width : 0) + 2;
             } else {
                 renderer.Xpad = 0;
                 renderer.Ypad = 0;



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