[banshee/grid: 11/12] [grid] invalidate last icell on adjustment change
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee/grid: 11/12] [grid] invalidate last icell on adjustment change
- Date: Thu, 21 Jan 2010 23:56:00 +0000 (UTC)
commit f8dac0af7efb3a3692bf1551bd482b251c8176ce
Author: Aaron Bockover <abockover novell com>
Date: Thu Jan 21 19:01:54 2010 -0500
[grid] invalidate last icell on adjustment change
.../ListView/ListView_Interaction.cs | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
index 800afde..312e7ff 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
@@ -305,6 +305,16 @@ namespace Hyena.Data.Gui
private IInteractiveCell last_icell;
private Gdk.Rectangle last_icell_area = Gdk.Rectangle.Zero;
+ private void InvalidateLastIcell ()
+ {
+ if (last_icell != null && last_icell.PointerLeaveEvent ()) {
+ QueueDrawArea (last_icell_area.X, last_icell_area.Y,
+ last_icell_area.Width, last_icell_area.Height);
+ last_icell = null;
+ last_icell_area = Gdk.Rectangle.Zero;
+ }
+ }
+
private void ProxyEventToCell (Gdk.Event evnt, bool press)
{
IInteractiveCell icell;
@@ -313,11 +323,7 @@ namespace Hyena.Data.Gui
if (ViewLayout != null) {
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);
- }
-
+ InvalidateLastIcell ();
last_icell = icell;
last_icell_area = icell_area;
}
@@ -885,6 +891,7 @@ namespace Hyena.Data.Gui
private void OnHadjustmentChanged (object o, EventArgs args)
{
+ InvalidateLastIcell ();
InvalidateHeader ();
InvalidateList ();
@@ -895,6 +902,7 @@ namespace Hyena.Data.Gui
private void OnVadjustmentChanged (object o, EventArgs args)
{
+ InvalidateLastIcell ();
InvalidateList ();
if (ViewLayout != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]