aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-node-view.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-11-22 02:31:51 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-11-22 02:43:38 +0800
commit1ea903e6e4f0079501486409b16887edfc8fd0b0 (patch)
tree917b433318b749237786aa2aafb2820ef5afc0a7 /lib/widgets/ephy-node-view.c
parent1e8f2bd6fdf325a412343b475d89d7afc0ba394b (diff)
downloadgsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.tar.gz
gsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.tar.zst
gsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.zip
Remove some deprecated GTK+ calls
https://bugzilla.gnome.org/show_bug.cgi?id=664120
Diffstat (limited to 'lib/widgets/ephy-node-view.c')
-rw-r--r--lib/widgets/ephy-node-view.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index e30a5364d..abd1f0f41 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -191,9 +191,13 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view)
window = gtk_tree_view_get_bin_window (tree_view);
vadjustment = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (tree_view));
-
- gdk_window_get_pointer (window, NULL, &y, NULL);
-
+
+ gdk_window_get_device_position (window,
+ gdk_device_manager_get_client_pointer (
+ gdk_display_get_device_manager (
+ gtk_widget_get_display (GTK_WIDGET (tree_view)))),
+ NULL, &y, NULL);
+
y += gtk_adjustment_get_value (vadjustment);
gtk_tree_view_get_visible_rect (tree_view, &visible_rect);