[hyena] CellContext: Add a StyleContext property



commit 3137e0881951c08797a2a6e92539fbdecb851387
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Thu Jun 12 21:16:55 2014 +0200

    CellContext: Add a StyleContext property
    
    This is just a getter, a short-hand for Widget.StyleContext.
    
    We've been inconsistently using either Widget.StyleContext or
    Theme.Widget.StyleContext, so this new property should make things
    clearer.

 Hyena.Gui/Hyena.Data.Gui/CellContext.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/CellContext.cs b/Hyena.Gui/Hyena.Data.Gui/CellContext.cs
index d5813de..b343903 100644
--- a/Hyena.Gui/Hyena.Data.Gui/CellContext.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/CellContext.cs
@@ -43,6 +43,9 @@ namespace Hyena.Data.Gui
         public Pango.Layout Layout { get; set; }
         public Pango.FontDescription FontDescription { get; set; }
         public Gtk.Widget Widget { get; set; }
+        public Gtk.StyleContext StyleContext {
+            get { return Widget.StyleContext; }
+        }
         public Gtk.StateFlags State { get; set; }
         public Theme Theme { get; set; }
         public Gdk.Rectangle Area { get; set; }


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