[hyena/gtk3] PulsingButton: Fix coordinates in OnDrawn



commit 218e5963ec447cfefcdbe04f90e93935f1707c89
Author: Olivier Dufour <olivier duff gmail com>
Date:   Wed Jul 27 19:28:57 2011 +0200

    PulsingButton: Fix coordinates in OnDrawn

 Hyena.Gui/Hyena.Widgets/PulsingButton.cs |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Widgets/PulsingButton.cs b/Hyena.Gui/Hyena.Widgets/PulsingButton.cs
index 78e498a..b010a44 100644
--- a/Hyena.Gui/Hyena.Widgets/PulsingButton.cs
+++ b/Hyena.Gui/Hyena.Widgets/PulsingButton.cs
@@ -88,11 +88,8 @@ namespace Hyena.Widgets
                 return base.OnDrawn (cr);
             }
 
-            cr.Save ();
-            CairoHelper.TransformToWindow (cr, this, Window);
-
-            double x = Allocation.X + Allocation.Width / 2;
-            double y = Allocation.Y + Allocation.Height / 2;
+            double x = Allocation.Width / 2;
+            double y = Allocation.Height / 2;
             double r = Math.Min (Allocation.Width, Allocation.Height) / 2;
             double alpha = Choreographer.Compose (pulsator.Percent, Easing.Sine);
 
@@ -110,7 +107,6 @@ namespace Hyena.Widgets
             cr.Fill ();
             fill.Destroy ();
 
-            cr.Restore ();
             return base.OnDrawn (cr);
         }
 



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