banshee r3139 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Collection
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3139 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Collection
- Date: Sun, 3 Feb 2008 16:09:15 +0000 (GMT)
Author: abock
Date: Sun Feb 3 16:09:15 2008
New Revision: 3139
URL: http://svn.gnome.org/viewvc/banshee?rev=3139&view=rev
Log:
2008-02-03 Aaron Bockover <abock gnome org>
* src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs: Do some trimming
in the Display* properties
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs (original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs Sun Feb 3 16:09:15 2008
@@ -134,26 +134,29 @@
}
public string DisplayArtistName {
- get {
- return String.IsNullOrEmpty (ArtistName)
+ get {
+ string name = ArtistName == null ? null : ArtistName.Trim ();
+ return String.IsNullOrEmpty (name)
? Catalog.GetString ("Unknown Artist")
- : ArtistName;
+ : name;
}
}
public string DisplayAlbumTitle {
get {
- return String.IsNullOrEmpty (AlbumTitle)
+ string title = AlbumTitle == null ? null : AlbumTitle.Trim ();
+ return String.IsNullOrEmpty (title)
? Catalog.GetString ("Unknown Album")
- : AlbumTitle;
+ : title;
}
}
public string DisplayTrackTitle {
get {
- return String.IsNullOrEmpty (TrackTitle)
+ string title = TrackTitle == null ? null : TrackTitle.Trim ();
+ return String.IsNullOrEmpty (title)
? Catalog.GetString ("Unknown Title")
- : TrackTitle;
+ : title;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]