[gitg] Fix fix for autoscroll



commit 2631c22a5f3f770c8b812e4a9a7ceb92632a4e9c
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat Jul 4 20:30:53 2009 +0200

    Fix fix for autoscroll

 gitg/gitg-dnd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-dnd.c b/gitg/gitg-dnd.c
index aea6914..ebd9d81 100644
--- a/gitg/gitg-dnd.c
+++ b/gitg/gitg-dnd.c
@@ -277,7 +277,7 @@ vertical_autoscroll (GitgDndData *data)
 
 	GtkAdjustment *adj = gtk_tree_view_get_vadjustment (data->tree_view);
 	
-	value = CLAMP (adj->upper + offset, 0.0,
+	value = CLAMP (gtk_adjustment_get_value (adj) + offset, 0.0,
 	               adj->upper - adj->page_size);
 
 	gtk_adjustment_set_value (adj, value);	



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