[evolution] Bug #641343 - Cannot scroll to bottom of folder list while dragging
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #641343 - Cannot scroll to bottom of folder list while dragging
- Date: Wed, 23 Feb 2011 14:54:14 +0000 (UTC)
commit 7a7d6cd2f114e93fe321865abffd297d8743651b
Author: Milan Crha <mcrha redhat com>
Date: Wed Feb 23 15:53:40 2011 +0100
Bug #641343 - Cannot scroll to bottom of folder list while dragging
mail/em-folder-tree.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 69a3435..86a0bda 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2427,9 +2427,6 @@ tree_autoscroll (EMFolderTree *folder_tree)
GdkRectangle rect;
GdkWindow *window;
gint offset, y;
- gdouble page_size;
- gdouble upper;
- gdouble value;
/* get the y pointer position relative to the treeview */
tree_view = GTK_TREE_VIEW (folder_tree);
@@ -2450,13 +2447,7 @@ tree_autoscroll (EMFolderTree *folder_tree)
}
adjustment = gtk_tree_view_get_vadjustment (tree_view);
-
- page_size = gtk_adjustment_get_value (adjustment);
- upper = gtk_adjustment_get_upper (adjustment);
- value = gtk_adjustment_get_value (adjustment);
-
- value = CLAMP (value + offset, 0.0, upper - page_size);
- gtk_adjustment_set_value (adjustment, value);
+ gtk_adjustment_set_value (adjustment, MAX (gtk_adjustment_get_value (adjustment) + offset, 0.0));
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]