[shotwell] Gdk.Seat exists only since 3.20



commit 9be90a6bd45ca410f273b722b2726e0868640498
Author: Jens Georg <mail jensge org>
Date:   Wed Nov 16 22:11:34 2016 +0100

    Gdk.Seat exists only since 3.20
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/Page.vala                  |    6 +++---
 src/library/LibraryWindow.vala |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Page.vala b/src/Page.vala
index 23e2131..13caae6 100644
--- a/src/Page.vala
+++ b/src/Page.vala
@@ -406,7 +406,7 @@ public abstract class Page : Gtk.ScrolledWindow {
         int x, y;
         Gdk.ModifierType mask;
         AppWindow.get_instance().get_window().get_device_position(Gdk.Display.get_default().
-            get_default_seat().get_pointer(), out x, out y, out mask);
+            get_device_manager().get_client_pointer(), out x, out y, out mask);
         
         ctrl = (mask & Gdk.ModifierType.CONTROL_MASK) != 0;
         alt = (mask & Gdk.ModifierType.MOD1_MASK) != 0;
@@ -666,8 +666,8 @@ public abstract class Page : Gtk.ScrolledWindow {
             return false;
         }
         
-        event_source.get_window().get_device_position(Gdk.Display.get_default().get_default_seat()
-            .get_pointer(), out x, out y, out mask);
+        event_source.get_window().get_device_position(Gdk.Display.get_default().get_device_manager()
+            .get_client_pointer(), out x, out y, out mask);
         
         if (last_down.x < 0 || last_down.y < 0)
             return true;
diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala
index ca10321..2a34462 100644
--- a/src/library/LibraryWindow.vala
+++ b/src/library/LibraryWindow.vala
@@ -794,8 +794,8 @@ public class LibraryWindow : AppWindow {
     private Gdk.DragAction get_drag_action() {
         Gdk.ModifierType mask;
         
-        get_window().get_device_position(Gdk.Display.get_default().get_default_seat()
-            .get_pointer(), null, null, out mask);
+        get_window().get_device_position(Gdk.Display.get_default().get_device_manager()
+            .get_client_pointer(), null, null, out mask);
 
         bool ctrl = (mask & Gdk.ModifierType.CONTROL_MASK) != 0;
         bool alt = (mask & Gdk.ModifierType.MOD1_MASK) != 0;


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