[banshee] [Banshee.Moblin] Small view tweaks, mute the model
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [Banshee.Moblin] Small view tweaks, mute the model
- Date: Thu, 15 Oct 2009 03:38:23 +0000 (UTC)
commit f02c877867bf8174ad50d5089f30b6c8df4ee903
Author: Aaron Bockover <abockover novell com>
Date: Wed Oct 14 23:42:28 2009 -0400
[Banshee.Moblin] Small view tweaks, mute the model
.../Banshee.Moblin/RecentAlbumsList.cs | 6 +++---
.../Banshee.Moblin/RecentAlbumsView.cs | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsList.cs b/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsList.cs
index c691029..a8d7b8a 100644
--- a/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsList.cs
+++ b/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsList.cs
@@ -77,17 +77,17 @@ namespace Banshee.Moblin
}
}
- Dump ();
+ // Dump ();
OnChanged ();
}
- private void Dump ()
+ /*private void Dump ()
{
Console.WriteLine ("RecentAlbumsList has {0} albums", list.Count);
foreach (var album in Albums) {
Console.WriteLine ("Recent Album: {0} by {1} (ArtworkId: {2})", album.Title, album.ArtistName, album.ArtworkId);
}
- }
+ }*/
private void OnChanged ()
{
diff --git a/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsView.cs b/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsView.cs
index a2a70c4..af21841 100644
--- a/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsView.cs
+++ b/src/Extensions/Banshee.Moblin/Banshee.Moblin/RecentAlbumsView.cs
@@ -38,19 +38,19 @@ namespace Banshee.Moblin
{
public class RecentAlbumsView : Table
{
- const int icon_size = 48;
- const int cols = 3;
- const int rows = 4;
+ const int icon_size = 98;
+ const int cols = 5;
+ const int rows = 3;
private RecentAlbumsList recent;
private List<Image> images;
- public RecentAlbumsView () : base (3, 4, true)
+ public RecentAlbumsView () : base (5, 3, true)
{
RowSpacing = ColumnSpacing = 12;
Build ();
- recent = new RecentAlbumsList (cols*rows);
+ recent = new RecentAlbumsList (cols * rows);
recent.Changed += (o, a) => Reload ();
Reload ();
}
@@ -63,7 +63,7 @@ namespace Banshee.Moblin
for (uint i = 0; i < cols; i++) {
var image = new Image ();
images.Add (image);
- Attach (image, i, i+1, j, j+1);
+ Attach (image, i, i + 1, j, j + 1);
}
}
@@ -80,7 +80,7 @@ namespace Banshee.Moblin
images[i].Show ();
}
- for (int i = recent.Albums.Count; i < cols*rows; i++) {
+ for (int i = recent.Albums.Count; i < cols * rows; i++) {
images[i].Hide ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]