banshee r4125 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView



Author: gburt
Date: Thu Jun  5 18:05:38 2008
New Revision: 4125
URL: http://svn.gnome.org/viewvc/banshee?rev=4125&view=rev

Log:
2008-06-05  Gabriel Burt  <gabriel burt gmail com>

	* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs:
	Fix bug with our cell_context.Drawable going missing b/c we weren't
	transferring it to the new cell_context within OnStyleSet.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs

Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs	(original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs	Thu Jun  5 18:05:38 2008
@@ -58,9 +58,14 @@
             base.OnStyleSet (old_style);
             RecomputeRowHeight = true;
             theme = new GtkTheme (this);
+
+            // Save the drawable so we can reuse it
+            Gdk.Drawable drawable = cell_context != null ? cell_context.Drawable : null;
+
             cell_context = new CellContext ();
             cell_context.Theme = theme;
             cell_context.Widget = this;
+            cell_context.Drawable = drawable;
         }
          
         protected override bool OnExposeEvent (EventExpose evnt)



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