[gnome-music] Show release date



commit ee2eba8b1fdf24fff17445a20ed07a46edcc8567
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Thu Apr 18 09:31:08 2013 +0000

    Show release date

 src/widgets.js | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/widgets.js b/src/widgets.js
index ae1e50e..3befcb1 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -224,6 +224,12 @@ const AlbumWidget = new Lang.Class({
 
     update: function (artist, album, item) {
         var pixbuf = albumArtCache.lookup (256, artist, item.get_string(Grl.METADATA_KEY_ALBUM));
+       let released_date = item.get_publication_date();
+       if (released_date != null) {
+            this.released_label_info.set_text(released_date.get_year().toString());
+       } else {
+            this.released_label_info.set_text("----");
+       }
         let duration = 0;
         this.model.clear()
         var tracks = [];


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