[hyena/gtk3] ColumnCellCheckBox: Use the "check" class for proper rendering



commit 09bddbdee15ebe08c618ed37485ae312fa5a751c
Author: Olivier Dufour <olivier duff gmail com>
Date:   Sat Jul 9 14:29:40 2011 +0200

    ColumnCellCheckBox: Use the "check" class for proper rendering
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
index 2c317a2..40ecec3 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
@@ -58,9 +58,11 @@ namespace Hyena.Data.Gui
             if (context.State == StateType.Normal && last_hover_bound == BoundObjectParent) {
                 context.State = StateType.Prelight;
             }
+            context.Widget.StyleContext.Save ();
+            context.Widget.StyleContext.AddClass ("check");
             context.Widget.StyleContext.State = (Value ? StateFlags.Active : StateFlags.Normal);
-            //"cellcheck"
             context.Widget.StyleContext.RenderCheck (context.Context, x, y, Size, Size);
+            context.Widget.StyleContext.Restore ();
         }
 
         private object last_pressed_bound;



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