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:

committed by
Sven Neumann

parent
899346d1bf
commit
a9b92ba22c
@ -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>
|
2007-02-11 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* configure.in: check for libhal if Linux Input support is enabled.
|
* configure.in: check for libhal if Linux Input support is enabled.
|
||||||
|
@ -110,7 +110,7 @@ gimp_input_device_store_init (GimpInputDeviceStore *store)
|
|||||||
char **devices;
|
char **devices;
|
||||||
int i, num_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);
|
&num_devices, NULL);
|
||||||
|
|
||||||
for (i = 0; i < num_devices; i++)
|
for (i = 0; i < num_devices; i++)
|
||||||
@ -187,7 +187,7 @@ gimp_input_device_store_add (GimpInputDeviceStore *store,
|
|||||||
{
|
{
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
if (strcmp (caps[i], "input.mouse"))
|
if (strcmp (caps[i], "input"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
str = libhal_device_get_property_string (store->context,
|
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))
|
if (gimp_input_device_store_lookup (store, &iter, udi))
|
||||||
{
|
{
|
||||||
char *str = libhal_device_get_property_string (store->context,
|
char *str = libhal_device_get_property_string (store->context,
|
||||||
udi, "linux.device_file",
|
udi, "input.device",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (str)
|
if (str)
|
||||||
|
Reference in New Issue
Block a user