[gnome-music] Escape artist and album name in album widget.
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Escape artist and album name in album widget.
- Date: Sun, 12 May 2013 16:06:52 +0000 (UTC)
commit 6129c635f2c2b1b92bcf47f6d6e9739abf8cc7b7
Author: Florian Will <florian will gmail com>
Date: Sun May 12 16:16:51 2013 +0200
Escape artist and album name in album widget.
Signed-off-by: Seif Lotfy <seif lotfy com>
src/widgets.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/widgets.js b/src/widgets.js
index 069d58b..21aef63 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -181,8 +181,10 @@ const AlbumWidget = new Lang.Class({
pixbuf = albumArtCache.makeDefaultIcon(256, 256);
this.ui.get_object("cover").set_from_pixbuf (pixbuf);
- this.ui.get_object("artist_label").set_markup(artist);
- this.ui.get_object("title_label").set_markup(album);
+ let escapedArtist = GLib.markup_escape_text(artist, -1);
+ let escapedAlbum = GLib.markup_escape_text(album, -1);
+ this.ui.get_object("artist_label").set_markup(escapedArtist);
+ this.ui.get_object("title_label").set_markup(escapedAlbum);
if (item.get_creation_date())
this.ui.get_object("released_label_info").set_text(item.get_creation_date().get_year().toString());
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]