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



commit 8cc7bb34bc625e175b13eb5afb7426736b80f591
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/gimpdevices.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpdevices.c b/app/widgets/gimpdevices.c
index 8e1c8c4..34257fd 100644
--- a/app/widgets/gimpdevices.c
+++ b/app/widgets/gimpdevices.c
@@ -516,6 +516,9 @@ gimp_devices_device_added (GdkDeviceManager  *gdk_manager,
   GdkDisplay     *display = gdk_device_manager_get_display (gdk_manager);
   GimpDeviceInfo *device_info;
 
+  if (gdk_device_get_source (device) == GDK_SOURCE_KEYBOARD)
+    return;
+
   device_info =
     GIMP_DEVICE_INFO (gimp_container_get_child_by_name (manager->device_info_list,
                                                         device->name));



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