[nautilus] tree-view-drag-dest: use GdkSeat operations
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] tree-view-drag-dest: use GdkSeat operations
- Date: Fri, 22 Apr 2016 13:56:51 +0000 (UTC)
commit 38a811ca31847c17c7650abbffb8b2314f212e36
Author: Ernestas Kulik <ernestas kulik gmail com>
Date: Sun Apr 17 20:20:55 2016 +0300
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
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 5cadc32..97257dd 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]