[Xfce4-commits] [panel-plugins/xfce4-eyes-plugin] 10/16: For GTK 3.2.0 use gdk_seat_get_pointer instead of gdk_device_manager_get_client_pointer

noreply at xfce.org noreply at xfce.org
Sun Jun 5 17:47:40 CEST 2016


This is an automated email from the git hooks/post-receive script.

andre pushed a commit to branch master
in repository panel-plugins/xfce4-eyes-plugin.

commit 6a85d35f81d25876828a0c41eca7f5b53bb9422c
Author: Andre Miranda <andre42m at gmail.com>
Date:   Thu May 26 00:30:35 2016 -0300

    For GTK 3.2.0 use gdk_seat_get_pointer instead of gdk_device_manager_get_client_pointer
---
 panel-plugin/eyes.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/panel-plugin/eyes.c b/panel-plugin/eyes.c
index 61a64ca..e997865 100644
--- a/panel-plugin/eyes.c
+++ b/panel-plugin/eyes.c
@@ -167,8 +167,13 @@ timer_cb(EyesPlugin *eyes)
     GdkWindow *window;
     GdkDevice *mouse_device;
 
+#if GTK_CHECK_VERSION(3,2,0)
+    GdkSeat *seat = gdk_display_get_default_seat (gdk_display_get_default());
+    mouse_device = gdk_seat_get_pointer (seat);
+#else
     GdkDeviceManager *devman = gdk_display_get_device_manager (gdk_display_get_default());
     mouse_device = gdk_device_manager_get_client_pointer (devman);
+#endif
 
     for (i = 0; i < eyes->num_eyes; i++)
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list