[eog] EogScrollView: Switch from GtkDeviceManager to GdkSeat



commit 3de58ce27176925d705518b15264d80097245109
Author: Felix Riemann <friemann gnome org>
Date:   Thu Dec 29 15:10:46 2016 +0100

    EogScrollView: Switch from GtkDeviceManager to GdkSeat

 src/eog-scroll-view.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 41bb22e..53fea06 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -975,15 +975,15 @@ display_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer data)
        }
 
        if (do_zoom) {
-               GdkDeviceManager *device_manager;
+               GdkSeat *seat;
                GdkDevice *device;
                gint x, y;
 
-               device_manager = gdk_display_get_device_manager (gtk_widget_get_display(widget));
-               device = gdk_device_manager_get_client_pointer (device_manager);
+               seat = gdk_display_get_default_seat (gtk_widget_get_display (widget));
+               device = gdk_seat_get_pointer (seat);
 
                gdk_window_get_device_position (gtk_widget_get_window (widget), device,
-                                       &x, &y, NULL);
+                                               &x, &y, NULL);
                set_zoom (view, zoom, TRUE, x, y);
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]