[Xfce4-commits] <thunar-volman:jannis/port-to-udev> Add support for wacom volito and bamboo tablets.

Jannis Pohlmann noreply at xfce.org
Sun Jul 25 19:44:16 CEST 2010


Updating branch refs/heads/jannis/port-to-udev
         to 0a3fd067c0dd3e97382faa8d6429bc6d0300a665 (commit)
       from 916ddd8e49cba6cd4912b3efa01f7945718eb33b (commit)

commit 0a3fd067c0dd3e97382faa8d6429bc6d0300a665
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