banshee r3151 - in trunk/banshee: . src/Core/Hyena.Gui/Hyena.Data.Gui



Author: scottp
Date: Tue Feb  5 06:39:49 2008
New Revision: 3151
URL: http://svn.gnome.org/viewvc/banshee?rev=3151&view=rev

Log:
* src/Core/Hyena.Gui/Hyena.Data.Gui/ListView.cs: Merged PaintRows into
  PaintList since PaintList had become a withered shell of its former
  self, not worth the method call.

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

Modified: trunk/banshee/src/Core/Hyena.Gui/Hyena.Data.Gui/ListView.cs
==============================================================================
--- trunk/banshee/src/Core/Hyena.Gui/Hyena.Data.Gui/ListView.cs	(original)
+++ trunk/banshee/src/Core/Hyena.Gui/Hyena.Data.Gui/ListView.cs	Tue Feb  5 06:39:49 2008
@@ -871,17 +871,11 @@
             if (model == null) {
                 return;
             }
-            
-            int rows = RowsInView;
+
             int vadjustment_value = (int) vadjustment.Value;
             int first_row = vadjustment_value / RowHeight;
-            int last_row = Math.Min (model.Count, first_row + rows);     
+            int last_row = Math.Min (model.Count, first_row + RowsInView);     
 
-            PaintRows (first_row, last_row, vadjustment_value, clip);
-        }
-        
-        private void PaintRows (int first_row, int last_row, int vadjustment_value, Gdk.Rectangle clip)
-        {
             Gdk.Rectangle single_list_alloc = new Gdk.Rectangle ();
             single_list_alloc.Width = list_alloc.Width;
             single_list_alloc.Height = RowHeight;



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