aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-11-29 09:43:26 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-11-29 22:12:30 +0800
commitd50deaf449913deaa71e05960e1c0f97cff05e93 (patch)
tree2920cc721b4f93d941a9d415ce9fe6c45f9691f0 /mail
parent0b9efdacc1ff9bdc53e6cb6deb107597a9858c1e (diff)
downloadgsoc2013-evolution-d50deaf449913deaa71e05960e1c0f97cff05e93.tar
gsoc2013-evolution-d50deaf449913deaa71e05960e1c0f97cff05e93.tar.gz
gsoc2013-evolution-d50deaf449913deaa71e05960e1c0f97cff05e93.tar.bz2
gsoc2013-evolution-d50deaf449913deaa71e05960e1c0f97cff05e93.tar.lz
gsoc2013-evolution-d50deaf449913deaa71e05960e1c0f97cff05e93.tar.xz
gsoc2013-evolution-d50deaf449913deaa71e05960e1c0f97cff05e93.tar.zst
gsoc2013-evolution-d50deaf449913deaa71e05960e1c0f97cff05e93.zip
Avoid gdk_window_get_pointer().
Use gdk_window_get_device_position() instead.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-tree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 4226d5663a..615857eda1 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2654,13 +2654,19 @@ tree_autoscroll (EMFolderTree *folder_tree)
GtkScrollable *scrollable;
GdkRectangle rect;
GdkWindow *window;
+ GdkDisplay *display;
+ GdkDeviceManager *device_manager;
+ GdkDevice *device;
gdouble value;
gint offset, y;
/* Get the y pointer position relative to the treeview. */
tree_view = GTK_TREE_VIEW (folder_tree);
window = gtk_tree_view_get_bin_window (tree_view);
- gdk_window_get_pointer (window, NULL, &y, NULL);
+ display = gdk_window_get_display (window);
+ device_manager = gdk_display_get_device_manager (display);
+ device = gdk_device_manager_get_client_pointer (device_manager);
+ gdk_window_get_device_position (window, device, NULL, &y, NULL);
/* Rect is in coorinates relative to the scrolled window,
* relative to the treeview. */