From a9b92ba22c19d96ed30ee1619fa83bc4374016bd Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sun, 11 Feb 2007 17:58:59 +0000 Subject: [PATCH] don't limit the store to "input.mouse", list all input devices. 2007-02-11 Sven Neumann * modules/gimpinputdevicestore.c: don't limit the store to "input.mouse", list all input devices. svn path=/trunk/; revision=21892 --- ChangeLog | 5 +++++ modules/gimpinputdevicestore.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9d55b175b..de6c53e52b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-11 Sven Neumann + + * modules/gimpinputdevicestore.c: don't limit the store to + "input.mouse", list all input devices. + 2007-02-11 Sven Neumann * configure.in: check for libhal if Linux Input support is enabled. diff --git a/modules/gimpinputdevicestore.c b/modules/gimpinputdevicestore.c index 574f9fe629..31bb5a2828 100644 --- a/modules/gimpinputdevicestore.c +++ b/modules/gimpinputdevicestore.c @@ -110,7 +110,7 @@ gimp_input_device_store_init (GimpInputDeviceStore *store) char **devices; int i, num_devices; - devices = libhal_find_device_by_capability (store->context, "input.mouse", + devices = libhal_find_device_by_capability (store->context, "input", &num_devices, NULL); for (i = 0; i < num_devices; i++) @@ -187,7 +187,7 @@ gimp_input_device_store_add (GimpInputDeviceStore *store, { char *str; - if (strcmp (caps[i], "input.mouse")) + if (strcmp (caps[i], "input")) continue; str = libhal_device_get_property_string (store->context, @@ -260,7 +260,7 @@ gimp_input_device_store_get_device_file (GimpInputDeviceStore *store, if (gimp_input_device_store_lookup (store, &iter, udi)) { char *str = libhal_device_get_property_string (store->context, - udi, "linux.device_file", + udi, "input.device", NULL); if (str)