[Xfce4-commits] <thunar-volman:master> Detect all devices as iPods whose ID_MODEL is prefixed with "iPod".

Jannis Pohlmann noreply at xfce.org
Sun Jul 25 19:46:11 CEST 2010


Updating branch refs/heads/master
         to 40f977ffa365ff38148acd8fcf2a95b875b3c842 (commit)
       from f8b4f75b09138d8f112b3dee36f4a248897ea869 (commit)

commit 40f977ffa365ff38148acd8fcf2a95b875b3c842
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