[gnome-music] Show release date
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Show release date
- Date: Thu, 18 Apr 2013 09:32:40 +0000 (UTC)
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]