diff options
author | Ernestas Kulik <ernestas.kulik@gmail.com> | 2016-04-17 20:20:55 +0300 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-04-22 15:53:01 +0200 |
commit | 38a811ca31847c17c7650abbffb8b2314f212e36 (patch) | |
tree | 1cba97befc4ab7a55d477f2804c2f3143ae6b500 /libnautilus-private | |
parent | 98dce7d56e84af291ade0a5028694cddb99e8a38 (diff) | |
download | nautilus-38a811ca31847c17c7650abbffb8b2314f212e36.tar.gz |
tree-view-drag-dest: use GdkSeat operations
Some GdkDisplay operations have been deprecated in GDK 3.20.
This commit replaces the deprecated code with new GdkSeat
operations.
https://bugzilla.gnome.org/show_bug.cgi?id=762235
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-tree-view-drag-dest.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-tree-view-drag-dest.c b/libnautilus-private/nautilus-tree-view-drag-dest.c index 5cadc3217..97257dd94 100644 --- a/libnautilus-private/nautilus-tree-view-drag-dest.c +++ b/libnautilus-private/nautilus-tree-view-drag-dest.c @@ -96,7 +96,8 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view) { GdkRectangle visible_rect; GtkAdjustment *vadjustment; - GdkDeviceManager *manager; + GdkDisplay *display; + GdkSeat *seat; GdkDevice *pointer; GdkWindow *window; int y; @@ -106,8 +107,9 @@ 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)); - manager = gdk_display_get_device_manager (gtk_widget_get_display (GTK_WIDGET (tree_view))); - pointer = gdk_device_manager_get_client_pointer (manager); + display = gtk_widget_get_display (GTK_WIDGET (tree_view)); + seat = gdk_display_get_default_seat (display); + pointer = gdk_seat_get_pointer (seat); gdk_window_get_device_position (window, pointer, NULL, &y, NULL); |