[hyena/gtk3] ColumnCellCheckBox: Fix coordinates for rendering



commit 77132308da69d66dbaf5a1c6c40993c416959ae4
Author: Olivier Dufour <olivier duff gmail com>
Date:   Sun Jul 24 19:44:45 2011 +0200

    ColumnCellCheckBox: Fix coordinates for rendering
    
    The coordinates for rendering were relative to the window previously,
    they are now relative to the widget.
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
index 4a06b42..9337ae8 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
@@ -52,8 +52,8 @@ namespace Hyena.Data.Gui
         {
             int cell_width = (int)cellWidth - 2 * Xpad;
             int cell_height = (int)cellHeight - 2 * Ypad;
-            int x = context.Area.X + xpad + ((cell_width - Size) / 2);
-            int y = context.Area.Y + ypad + ((cell_height - Size) / 2);
+            int x = Xpad + ((cell_width - Size) / 2);
+            int y = Ypad + ((cell_height - Size) / 2);
 
             if (context.State == StateFlags.Normal && last_hover_bound == BoundObjectParent) {
                 context.State = StateFlags.Prelight;



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