[gnome-music] Get proper size for album art fixes #700189



commit 9f1f46f942cfbed1f4bde65245d407fa90ba34a4
Author: Seif Lotfy <seif lotfy com>
Date:   Sun May 12 19:38:09 2013 +0200

    Get proper size for album art
    fixes #700189

 src/albumArtCache.js |    3 +++
 src/widgets.js       |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/albumArtCache.js b/src/albumArtCache.js
index e9e8d45..3aadc38 100644
--- a/src/albumArtCache.js
+++ b/src/albumArtCache.js
@@ -110,7 +110,10 @@ const AlbumArtCache = new Lang.Class({
     },
 
     getFromUri: function(uri, artist, album, width, height, callback) {
+        // FIXME: Get a binary and store
         if (uri == null) return;
+        uri = uri.replace("/126/", "/252/");
+        print (uri)
         if (this.requested_uris.indexOf(uri) >= 0) return;
 
         this.requested_uris.push(uri);
diff --git a/src/widgets.js b/src/widgets.js
index 21aef63..97459aa 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -176,9 +176,9 @@ const AlbumWidget = new Lang.Class({
             }));
         }
         this.view.set_model(this.model);
-        let pixbuf = albumArtCache.lookup (256, artist, item.get_string(Grl.METADATA_KEY_ALBUM));
+        let pixbuf = albumArtCache.lookup (252, artist, item.get_string(Grl.METADATA_KEY_ALBUM));
         if (pixbuf == null)
-            pixbuf = albumArtCache.makeDefaultIcon(256, 256);
+            pixbuf = albumArtCache.makeDefaultIcon(252, 252);
         this.ui.get_object("cover").set_from_pixbuf (pixbuf);
 
         let escapedArtist = GLib.markup_escape_text(artist, -1);


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