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



Author: scottp
Date: Tue Mar 25 23:04:41 2008
New Revision: 3544
URL: http://svn.gnome.org/viewvc/banshee?rev=3544&view=rev

Log:
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs:
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs:
Use QueueDraw.

* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs:
New QueueDraw method so that new rendering model will properly
update.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
   trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
   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_Header.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs	(original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs	Tue Mar 25 23:04:41 2008
@@ -145,7 +145,7 @@
         {
             InvalidateColumnCache ();
             RegenerateColumnCache ();
-            InvalidateListView ();
+            QueueDraw ();
         }
         
         protected virtual void OnColumnRightClicked (Column clickedColumn, int x, int y)
@@ -217,7 +217,7 @@
             ColumnController.QueueUpdate ();
             
             RegenerateColumnCache ();
-            InvalidateListView ();
+            QueueDraw ();
         }
         
         private Column GetColumnForResizeHandle (int x)
@@ -272,7 +272,7 @@
                 column_controller = value;
                 
                 RegenerateColumnCache ();
-                InvalidateListView ();
+                QueueDraw ();
                 
                 if (column_controller != null) {
                     column_controller.Updated += OnColumnControllerUpdatedHandler;

Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs	(original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs	Tue Mar 25 23:04:41 2008
@@ -417,7 +417,7 @@
                 
                 pressed_column_x_drag = x - pressed_column_x_offset;
                 
-                InvalidateListView ();
+                QueueDraw ();
                 return true;
             }
             

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	Tue Mar 25 23:04:41 2008
@@ -440,7 +440,7 @@
             cairo_context.Stroke ();
         }
         
-        private void InvalidateListView ()
+        public new void QueueDraw ()
         {
             InvalidateHeader ();
             InvalidateList ();



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