[gimp/gtk3-port: 135/137] app: skip keyboard devices so the device list becomes reasonable
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 135/137] app: skip keyboard devices so the device list becomes reasonable
- Date: Mon, 22 Nov 2010 10:31:28 +0000 (UTC)
commit fd4fe458d6ec6e1cbbaa36bc1ed052bcbab2c04f
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 fd74382..a6ec3c5 100644
--- a/app/widgets/gimpdevices.c
+++ b/app/widgets/gimpdevices.c
@@ -515,6 +515,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]