[hyena/gtk3: 6/13] [gt3] Fix 2 warning on ColumnCellCheckbox



commit 9e60db93f0170e064c7805b2f032eca17fa7ab3a
Author: Olivier Dufour <olivier duff gmail com>
Date:   Thu Apr 21 19:27:31 2011 +0200

    [gt3] Fix 2 warning on ColumnCellCheckbox

 Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
index 1887b06..c3e1837 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
@@ -58,10 +58,9 @@ namespace Hyena.Data.Gui
             if (context.State == StateType.Normal && last_hover_bound == BoundObjectParent) {
                 context.State = StateType.Prelight;
             }
-
-            Style.PaintCheck (context.Widget.Style, context.Context, context.State,
-                Value ? ShadowType.In : ShadowType.Out,
-                context.Widget, "cellcheck", x, y, Size, Size);
+			context.Widget.StyleContext.State = (Value ? StateFlags.Active : StateFlags.Normal);
+			//"cellcheck"
+			Gtk.Render.Check (context.Widget.StyleContext, context.Context, x, y, Size, Size);
         }
 
         private object last_pressed_bound;



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