[tomboy] Don't change scroll position on note save events (BGO #588593)



commit 53cb7fa1e84822dcae0764650e87232dc65d555a
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Mon Aug 10 11:07:04 2009 -0700

    Don't change scroll position on note save events (BGO #588593)

 Tomboy/RecentChanges.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/RecentChanges.cs b/Tomboy/RecentChanges.cs
index 86733bd..e7911ce 100644
--- a/Tomboy/RecentChanges.cs
+++ b/Tomboy/RecentChanges.cs
@@ -650,7 +650,9 @@ namespace Tomboy
 
 		void OnNoteSaved (Note note)
 		{
+			var rect = tree.VisibleRect;
 			UpdateResults ();
+			tree.ScrollToPoint (rect.X, rect.Y);
 		}
 
 		void OnTreeViewDragDataGet (object sender, Gtk.DragDataGetArgs args)



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