aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
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
parent1e8f2bd6fdf325a412343b475d89d7afc0ba394b (diff)
downloadgsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.tar
gsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.tar.gz
gsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.tar.bz2
gsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.tar.lz
gsoc2013-epiphany-1ea903e6e4f0079501486409b16887edfc8fd0b0.tar.xz
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')
-rw-r--r--lib/widgets/ephy-node-view.c10
-rw-r--r--lib/widgets/ephy-overlay-escaping-child.c4
2 files changed, 10 insertions, 4 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);
diff --git a/lib/widgets/ephy-overlay-escaping-child.c b/lib/widgets/ephy-overlay-escaping-child.c
index c321d9282..b1fd796a8 100644
--- a/lib/widgets/ephy-overlay-escaping-child.c
+++ b/lib/widgets/ephy-overlay-escaping-child.c
@@ -82,7 +82,9 @@ parent_motion_notify_event (GtkWidget *widget,
gtk_widget_get_allocation (widget, &alloc);
if (is_point_in_rectangle (event->x, event->y, priv->escaping_area)) {
- gtk_widget_get_pointer (widget, &distance_x, &distance_y);
+ gdk_window_get_device_position (gtk_widget_get_window (widget),
+ gdk_event_get_device ((GdkEvent *) event),
+ &distance_x, &distance_y, NULL);
alloc.y += priv->escaping_distance + distance_y;
}
else {