conduit r1890 - in trunk: . conduit/modules/iPodModule
- From: tobiasmue svn gnome org
- To: svn-commits-list gnome org
- Subject: conduit r1890 - in trunk: . conduit/modules/iPodModule
- Date: Sun, 22 Feb 2009 01:33:14 +0000 (UTC)
Author: tobiasmue
Date: Sun Feb 22 01:33:14 2009
New Revision: 1890
URL: http://svn.gnome.org/viewvc/conduit?rev=1890&view=rev
Log:
2009-02-22 Tobias Mueller <tobiasmue svn gnome org>
* conduit/modules/iPodModule/iPodModule.py: Display a
default category for an ipod without any name. Patch by Andrew
Stormont.
Fixes bug 572132.
Modified:
trunk/ChangeLog
trunk/conduit/modules/iPodModule/iPodModule.py
Modified: trunk/conduit/modules/iPodModule/iPodModule.py
==============================================================================
--- trunk/conduit/modules/iPodModule/iPodModule.py (original)
+++ trunk/conduit/modules/iPodModule/iPodModule.py Sun Feb 22 01:33:14 2009
@@ -89,8 +89,11 @@
return False
def get_category(self, udi, **kwargs):
+ label = kwargs['volume.label']
+ if not label:
+ label = "Apple iPod Music Player"
return DataProviderCategory.DataProviderCategory(
- kwargs['volume.label'],
+ label,
"multimedia-player-ipod-standard-color",
self._get_mount_path(kwargs))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]