diff options
author | Robert Xu <robxu9@gmail.com> | 2011-08-24 17:26:04 -0400 |
---|---|---|
committer | Robert Xu <robxu9@gmail.com> | 2011-08-24 17:26:04 -0400 |
commit | 93c66bf8bb8ac0124ae1800cbaaeb814742bfac5 (patch) | |
tree | 2551422a7981b35684110fae090223b7a1b6d73f /opensuse/tdebase/media-iPod.diff | |
parent | 425774d7d1d663e08bb06050924f2eeca9147bba (diff) | |
download | tde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.tar.gz tde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.zip |
dbus-1-tqt -> libdbus-tqt-1-0 AND tdelibs import (unchanged)
Diffstat (limited to 'opensuse/tdebase/media-iPod.diff')
-rw-r--r-- | opensuse/tdebase/media-iPod.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/opensuse/tdebase/media-iPod.diff b/opensuse/tdebase/media-iPod.diff new file mode 100644 index 000000000..c5f1f8a24 --- /dev/null +++ b/opensuse/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: |