[gimp/gtk3-port: 100/227] app: skip keyboard devices so the device list becomes reasonable



commit 3dc049a7ea49f508b248bc60238925a5d9692ff7
Author: Michael Natterer <mitch gimp org>
Date:   Mon Nov 22 11:13:53 2010 +0100

    app: skip keyboard devices so the device list becomes reasonable

 app/widgets/gimpdevicemanager.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/app/widgets/gimpdevicemanager.c b/app/widgets/gimpdevicemanager.c
index 805f62d..88a2093 100644
--- a/app/widgets/gimpdevicemanager.c
+++ b/app/widgets/gimpdevicemanager.c
@@ -372,6 +372,9 @@ gimp_device_manager_device_added (GdkDeviceManager  *gdk_manager,
   GdkDisplay               *display;
   GimpDeviceInfo           *device_info;
 
+  if (gdk_device_get_source (device) == GDK_SOURCE_KEYBOARD)
+    return;
+
   display = gdk_device_manager_get_display (gdk_manager);
 
   device_info =


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