[Xfce4-commits] <thunar-volman:jannis/port-to-udev> Detect all devices as iPods whose ID_MODEL is prefixed with "iPod".

Jannis Pohlmann noreply at xfce.org
Sun Jul 25 18:44:01 CEST 2010


Updating branch refs/heads/jannis/port-to-udev
         to a8438d528e771e7703bd738ada21cf92e1cf8a91 (commit)
       from 224e7bf94f9b20e1b5005c9b9d1647c42b746800 (commit)

commit a8438d528e771e7703bd738ada21cf92e1cf8a91
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sun Jul 25 18:41:49 2010 +0200

    Detect all devices as iPods whose ID_MODEL is prefixed with "iPod".

 thunar-volman/tvm-block-device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/thunar-volman/tvm-block-device.c b/thunar-volman/tvm-block-device.c
index f29608c..b7b8402 100644
--- a/thunar-volman/tvm-block-device.c
+++ b/thunar-volman/tvm-block-device.c
@@ -162,8 +162,8 @@ tvm_block_device_autoipod (TvmContext *context,
                                                     "ID_MEDIA_PLAYER");
 
       /* check if we have an iPod */
-      is_ipod = g_strcmp0 (g_udev_device_get_property (context->device, 
-                                                       "ID_MODEL"), "iPod") == 0;
+      is_ipod = g_str_has_prefix (g_udev_device_get_property (context->device, 
+                                                              "ID_MODEL"), "iPod");
       if (is_ipod)
         {
           /* determine the mount point path */



More information about the Xfce4-commits mailing list