banshee r3585 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3585 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio
- Date: Sat, 29 Mar 2008 08:34:50 +0000 (GMT)
Author: gburt
Date: Sat Mar 29 08:34:50 2008
New Revision: 3585
URL: http://svn.gnome.org/viewvc/banshee?rev=3585&view=rev
Log:
2008-03-29 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs:
Remove all children when refreshing. And add playcount to top artist tiles.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs
Modified: trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSourceContents.cs Sat Mar 29 08:34:50 2008
@@ -114,10 +114,8 @@
last_user = username;
- if (recently_loved != null) {
- main_box.Remove (recently_loved);
- main_box.Remove (recently_played);
- main_box.Remove (top_artists);
+ while (main_box.Children.Length != 0) {
+ main_box.Remove (main_box.Children[0]);
}
recently_loved = new NumberedList (lastfm, Catalog.GetString ("Recently Loved Tracks"));
@@ -212,6 +210,7 @@
foreach (UserTopArtist artist in artists) {
MenuTile tile = new MenuTile ();
tile.PrimaryText = artist.Name;
+ tile.SecondaryText = String.Format (Catalog.GetString ("{0} plays"), artist.PlayCount);
tile_view.AddNumberedWidget (tile);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]