[Xfce4-commits] <thunar-volman:jannis/port-to-udev> Add support for wacom volito and bamboo tablets.
Jannis Pohlmann
noreply at xfce.org
Wed Jul 21 11:14:02 CEST 2010
Updating branch refs/heads/jannis/port-to-udev
to 6ef906ba7b7589eab826b305503b32b5b22f151a (commit)
from a05cc760f45489fbeaa28bd38c521955d6f70ae5 (commit)
commit 6ef906ba7b7589eab826b305503b32b5b22f151a
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Wed Jul 21 11:11:43 2010 +0200
Add support for wacom volito and bamboo tablets.
thunar-volman/tvm-input-device.c | 5 ++++-
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";
More information about the Xfce4-commits
mailing list