[rhythmbox] fix up coordinate conversions in tree drag&drop code (bug #579137)



commit 3c6e830e1ce2f77a3409c86e63f67cca125b17d8
Author: Ryan Hughes <ryan iheartryan com>
Date:   Mon May 18 09:28:23 2009 +1000

    fix up coordinate conversions in tree drag&drop code (bug #579137)
---
 lib/rb-tree-dnd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/rb-tree-dnd.c b/lib/rb-tree-dnd.c
index 0e1c683..e093607 100644
--- a/lib/rb-tree-dnd.c
+++ b/lib/rb-tree-dnd.c
@@ -475,6 +475,8 @@ scroll_row_timeout (gpointer data)
 
 	gdk_window_get_pointer (gtk_tree_view_get_bin_window (tree_view), &x, &y, NULL);
 	gtk_tree_view_convert_widget_to_bin_window_coords (tree_view, x, y, &x, &y);
+	gtk_tree_view_convert_bin_window_to_tree_coords (tree_view, x, y, &x, &y);
+
 	gtk_tree_view_get_visible_rect (tree_view, &visible_rect);
 
 	/* see if we are near the edge. */



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