[gtk+] Use the new getter



commit 98f16fdf7a74d88996f0837c1fdd3bd5d8e9cbf8
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 30 20:59:16 2016 -0400

    Use the new getter
    
    This avoids the use of generic api in the per-event code path.

 gdk/gdkwindow.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 5db80fa..8e4fd85 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9559,8 +9559,6 @@ _gdk_windowing_got_event (GdkDisplay *display,
 
   if (device)
     {
-      GdkInputMode mode;
-
       if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD)
         {
           pointer_info = _gdk_display_get_pointer_info (display, device);
@@ -9572,10 +9570,9 @@ _gdk_windowing_got_event (GdkDisplay *display,
             source_device = pointer_info->last_slave;
         }
 
-      g_object_get (device, "input-mode", &mode, NULL);
       _gdk_display_device_grab_update (display, device, source_device, serial);
 
-      if (mode == GDK_MODE_DISABLED ||
+      if (gdk_device_get_input_mode (device) == GDK_MODE_DISABLED ||
           !_gdk_display_check_grab_ownership (display, device, serial))
         {
           /* Device events are blocked by another


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