summaryrefslogtreecommitdiff
path: root/thunar-volman
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2010-07-21 11:11:43 +0200
committerJannis Pohlmann <jannis@xfce.org>2010-07-25 19:42:29 +0200
commit0a3fd067c0dd3e97382faa8d6429bc6d0300a665 (patch)
tree042acf572e95681a8ca26c76f93af2e0701dfba7 /thunar-volman
parent916ddd8e49cba6cd4912b3efa01f7945718eb33b (diff)
downloadthunar-volman-0a3fd067c0dd3e97382faa8d6429bc6d0300a665.tar.gz
Add support for wacom volito and bamboo tablets.
Diffstat (limited to 'thunar-volman')
-rw-r--r--thunar-volman/tvm-input-device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/thunar-volman/tvm-input-device.c b/thunar-volman/tvm-input-device.c
index bae1e7c..3be0721 100644
--- a/thunar-volman/tvm-input-device.c
+++ b/thunar-volman/tvm-input-device.c
@@ -38,6 +38,7 @@ tvm_input_device_added (TvmContext *context)
{
const gchar *id_class;
const gchar *id_model;
+ const gchar *id_usb_driver;
const gchar *driver;
const gchar *enabled_property = NULL;
const gchar *command_property = NULL;
@@ -50,6 +51,7 @@ tvm_input_device_added (TvmContext *context)
id_class = g_udev_device_get_property (context->device, "ID_CLASS");
id_model = g_udev_device_get_property (context->device, "ID_MODEL");
driver = g_udev_device_get_property (context->device, "DRIVER");
+ id_usb_driver = g_udev_device_get_property (context->device, "ID_USB_DRIVER");
if (g_strcmp0 (id_class, "kbd") == 0)
{
@@ -57,7 +59,8 @@ tvm_input_device_added (TvmContext *context)
enabled_property = "/autokeyboard/enabled";
command_property = "/autokeyboard/command";
}
- else if (g_strcmp0 (driver, "wacom") == 0)
+ else if (g_strcmp0 (driver, "wacom") == 0
+ || g_strcmp0 (id_usb_driver, "wacom") == 0)
{
/* we have a wacom tablet */
enabled_property = "/autotablet/enabled";