[hyena] ListView: Remove CellContext.Drawable property
- From: Bertrand Lorentz <blorentz src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [hyena] ListView: Remove CellContext.Drawable property
 
- Date: Thu, 12 Jun 2014 18:02:45 +0000 (UTC)
 
commit 6f33e37fc28187b9cdc7360fa59678adef5b4ee6
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Thu Jun 12 20:00:47 2014 +0200
    ListView: Remove CellContext.Drawable property
    
    It was just being set to the ListView Window, but never used.
 Hyena.Gui/Hyena.Data.Gui/CellContext.cs            |    1 -
 .../Hyena.Data.Gui/ListView/ListView_Rendering.cs  |    4 ----
 .../Hyena.Data.Gui/ListView/ListView_Windowing.cs  |    1 -
 3 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/CellContext.cs b/Hyena.Gui/Hyena.Data.Gui/CellContext.cs
index 8da5c16..d5813de 100644
--- a/Hyena.Gui/Hyena.Data.Gui/CellContext.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/CellContext.cs
@@ -44,7 +44,6 @@ namespace Hyena.Data.Gui
         public Pango.FontDescription FontDescription { get; set; }
         public Gtk.Widget Widget { get; set; }
         public Gtk.StateFlags State { get; set; }
-        public Gdk.Window Drawable { get; set; }
         public Theme Theme { get; set; }
         public Gdk.Rectangle Area { get; set; }
         public Gdk.Rectangle Clip { get; set; }
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs 
b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index 713f949..1b73895 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -82,9 +82,6 @@ namespace Hyena.Data.Gui
 
             theme = Hyena.Gui.Theming.ThemeEngine.CreateTheme (this);
 
-            // Save the drawable so we can reuse it
-            var drawable = cell_context != null ? cell_context.Drawable : null;
-
             if (pango_layout != null) {
                 cell_context.FontDescription.Dispose ();
                 pango_layout.Dispose ();
@@ -96,7 +93,6 @@ namespace Hyena.Data.Gui
             cell_context = new CellContext ();
             cell_context.Theme = theme;
             cell_context.Widget = this;
-            cell_context.Drawable = drawable;
             SetDirection ();
         }
 
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs 
b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
index cc63c78..b3956b4 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Windowing.cs
@@ -57,7 +57,6 @@ namespace Hyena.Data.Gui
             HasWindow = false;
 
             Window = Parent.Window;
-            cell_context.Drawable = Window;
 
             WindowAttr attributes = new WindowAttr ();
             attributes.WindowType = Gdk.WindowType.Child;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]