banshee r3548 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui



Author: gburt
Date: Wed Mar 26 02:18:31 2008
New Revision: 3548
URL: http://svn.gnome.org/viewvc/banshee?rev=3548&view=rev

Log:
2008-03-25  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Collection.Gui/AlbumListView.cs:
	* src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtistListView.cs:
	Start playing when activated.  Fixes BGO #524412.

	* src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs:
	Catch exceptions with loading artwork.  Catches 'no data in image' error.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/AlbumListView.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtistListView.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/AlbumListView.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/AlbumListView.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/AlbumListView.cs	Wed Mar 26 02:18:31 2008
@@ -45,10 +45,12 @@
         {
             column_controller = new ColumnController();
             column_controller.Add(new Column("Album", new ColumnCellAlbum(), 1.0));
-            
             ColumnController = column_controller;
-            
             RowHeight = ColumnCellAlbum.RowHeight;
+            
+            RowActivated += delegate {
+                ServiceManager.PlaybackController.First ();
+            };
         }
 
         protected override bool OnFocusInEvent(Gdk.EventFocus evnt)

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtistListView.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtistListView.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtistListView.cs	Wed Mar 26 02:18:31 2008
@@ -45,8 +45,11 @@
         {
             column_controller = new ColumnController();
             column_controller.Add(new Column("Artist", new ColumnCellText("Name", true), 1.0));
-            
             ColumnController = column_controller;
+            
+            RowActivated += delegate {
+                ServiceManager.PlaybackController.First ();
+            };
         }
 
         protected override bool OnFocusInEvent(Gdk.EventFocus evnt)

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs	Wed Mar 26 02:18:31 2008
@@ -121,12 +121,14 @@
             
             string orig_path = CoverArtSpec.GetPathForSize (id, 0);
             if (File.Exists (orig_path)) {
-                Pixbuf pixbuf = new Pixbuf (orig_path);
-                Pixbuf scaled_pixbuf = pixbuf.ScaleSimple (size, size, Gdk.InterpType.Bilinear);
-                Directory.CreateDirectory (Path.GetDirectoryName (path));
-                scaled_pixbuf.Save (path, "jpeg");
-                ArtworkRenderer.DisposePixbuf (pixbuf);
-                return scaled_pixbuf;
+                try {
+                    Pixbuf pixbuf = new Pixbuf (orig_path);
+                    Pixbuf scaled_pixbuf = pixbuf.ScaleSimple (size, size, Gdk.InterpType.Bilinear);
+                    Directory.CreateDirectory (Path.GetDirectoryName (path));
+                    scaled_pixbuf.Save (path, "jpeg");
+                    ArtworkRenderer.DisposePixbuf (pixbuf);
+                    return scaled_pixbuf;
+                } catch {}
             }
             
             return null;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]