banshee r3966 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3966 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- Date: Thu, 22 May 2008 20:13:34 +0000 (UTC)
Author: abock
Date: Thu May 22 20:13:34 2008
New Revision: 3966
URL: http://svn.gnome.org/viewvc/banshee?rev=3966&view=rev
Log:
2008-05-22 Aaron Bockover <abock gnome org>
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs:
Offset the cell damage areas by the view adjustment values
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
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 Thu May 22 20:13:34 2008
@@ -208,16 +208,21 @@
Gdk.Rectangle icell_area;
bool redraw = ProxyEventToCell (evnt, press, out icell, out icell_area);
+ int xoffset = (int)hadjustment.Value;
+ int yoffset = (int)vadjustment.Value;
+
if (last_icell_area != icell_area) {
if (last_icell != null && last_icell.PointerLeaveEvent ()) {
- QueueDrawArea (last_icell_area.X, last_icell_area.Y, last_icell_area.Width, last_icell_area.Height);
+ QueueDrawArea (last_icell_area.X - xoffset, last_icell_area.Y - yoffset,
+ last_icell_area.Width, last_icell_area.Height);
}
last_icell = icell;
last_icell_area = icell_area;
}
if (redraw) {
- QueueDrawArea (icell_area.X, icell_area.Y, icell_area.Width, icell_area.Height);
+ QueueDrawArea (icell_area.X - xoffset, icell_area.Y - yoffset,
+ icell_area.Width, icell_area.Height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]