Updating branch refs/heads/jannis/port-to-udev
         to 45b7e85f817ec5472ff82ff1293a97542929b045 (commit)
       from 76f32afa8e4999500f2adaa6c98cc49923076dac (commit)

commit 45b7e85f817ec5472ff82ff1293a97542929b045
Author: Jannis Pohlmann <[email protected]>
Date:   Wed Jul 21 22:55:24 2010 +0200

    Add some debug output

 thunar-volman/tvm-usb-device.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/thunar-volman/tvm-usb-device.c b/thunar-volman/tvm-usb-device.c
index 943f362..02b1529 100644
--- a/thunar-volman/tvm-usb-device.c
+++ b/thunar-volman/tvm-usb-device.c
@@ -45,17 +45,23 @@ tvm_usb_device_added (TvmContext *context)
 
   g_return_if_fail (context != NULL);
 
+  g_debug ("usb device added");
+
   /* collect device information */
   driver = g_udev_device_get_property (context->device, "DRIVER");
   is_camera = g_udev_device_get_property_as_boolean (context->device, 
"ID_GPHOTO2");
 
   if (is_camera)
     {
+      g_debug ("is camera");
+
       enabled_property = "/autophoto/enabled";
       command_property = "/autophoto/command";
     }
   else if (g_strcmp0 (driver, "usblp") == 0)
     {
+      g_debug ("is printer");
+
       enabled_property = "/autoprinter/enabled";
       command_property = "/autoprinter/command";
     }
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to