summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tdebase/media-iPod.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2011-11-10 18:04:39 -0500
committerRobert Xu <robxu9@gmail.com>2011-11-10 18:04:39 -0500
commit21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 (patch)
tree2cfb64c59322628e613ed0895e3c3694d3abe6bd /opensuse/core/tdebase/media-iPod.diff
parent8667643bff14a60d8571c599efd3e48bed3e3b12 (diff)
downloadtde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.tar.gz
tde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.zip
initial commit to suse branch: eclipse integration
Diffstat (limited to 'opensuse/core/tdebase/media-iPod.diff')
-rw-r--r--opensuse/core/tdebase/media-iPod.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/opensuse/core/tdebase/media-iPod.diff b/opensuse/core/tdebase/media-iPod.diff
new file mode 100644
index 000000000..c5f1f8a24
--- /dev/null
+++ b/opensuse/core/tdebase/media-iPod.diff
@@ -0,0 +1,26 @@
+Index: kioslave/media/mediamanager/halbackend.cpp
+===================================================================
+--- kioslave/media/mediamanager/halbackend.cpp.orig
++++ kioslave/media/mediamanager/halbackend.cpp
+@@ -33,6 +33,7 @@
+ #include <kmountpoint.h>
+ #include <kmessagebox.h>
+ #include <kio/job.h>
++#include <kprotocolinfo.h>
+
+ #define MOUNT_SUFFIX (libhal_volume_is_mounted(halVolume) ? QString("_mounted") : QString("_unmounted"))
+ #define MOUNT_ICON_SUFFIX (libhal_volume_is_mounted(halVolume) ? QString("_mount") : QString("_unmount"))
+@@ -532,6 +533,13 @@ void HALBackend::setVolumeProperties(Med
+ case LIBHAL_DRIVE_TYPE_PORTABLE_AUDIO_PLAYER:
+ {
+ medium->setIconName("ipod" + MOUNT_ICON_SUFFIX);
++
++ if (libhal_device_get_property_QString(m_halContext, driveUdi.latin1(), "info.product") == "iPod" &&
++ KProtocolInfo::isKnownProtocol( QString("ipod") ) )
++ {
++ medium->unmountableState( "ipod:/" );
++ medium->mountableState( libhal_volume_is_mounted(halVolume) );
++ }
+ break;
+ }
+ case LIBHAL_DRIVE_TYPE_CAMERA: