Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 2ad0c277ea862f45e03d8830e1a98002 > files > 1

thunar-volman-0.1.2-3mdv2008.0.src.rpm

diff -Naur thunar-volman-0.1.2/thunar-volman/tvm-block-device.c thunar-volman-0.1.2.tpg/thunar-volman/tvm-block-device.c
--- thunar-volman-0.1.2/thunar-volman/tvm-block-device.c	2007-01-20 10:57:16.000000000 +0000
+++ thunar-volman-0.1.2.tpg/thunar-volman/tvm-block-device.c	2007-09-04 16:31:24.000000000 +0000
@@ -88,6 +88,7 @@
 {
   gboolean result = FALSE;
   gboolean autoipod;
+  gboolean is_audio_player = FALSE;
   gchar   *autoipod_command;
   gchar   *autophoto_command;
   gchar   *storage_udi;
@@ -106,6 +107,7 @@
           /* check if we have a portable audio player here */
           if (libhal_device_query_capability (context, storage_udi, "portable_audio_player", NULL))
             {
+	      is_audio_player = TRUE;
               /* check if we have an iPod here */
               product = libhal_device_get_property_string (context, storage_udi, "info.product", NULL);
               if (product != NULL && strcmp (product, "iPod") != 0)
@@ -151,7 +153,8 @@
           else
             {
               /* no photos, so we can manage only music */
-              response = TVM_RESPONSE_MUSIC;
+              if(is_audio_player)
+		      response = TVM_RESPONSE_MUSIC;
             }
 
           /* check what to do */