don't limit the store to "input.mouse", list all input devices.

2007-02-11  Sven Neumann  <sven@gimp.org>

	* modules/gimpinputdevicestore.c: don't limit the store to
	"input.mouse", list all input devices.


svn path=/trunk/; revision=21892
This commit is contained in:
Sven Neumann 2007-02-11 17:58:59 +00:00 committed by Sven Neumann
parent 899346d1bf
commit a9b92ba22c
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-02-11 Sven Neumann <sven@gimp.org>
* modules/gimpinputdevicestore.c: don't limit the store to
"input.mouse", list all input devices.
2007-02-11 Sven Neumann <sven@gimp.org>
* configure.in: check for libhal if Linux Input support is enabled.

View File

@ -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)