[gnome-music/wip/merge: 179/343] widgets: correctly format titles
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 179/343] widgets: correctly format titles
- Date: Thu, 25 Jul 2013 11:28:02 +0000 (UTC)
commit d4b7e411d6be0ec9d7e36498a6437c789acd58ac
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Tue Jul 16 17:57:06 2013 +0200
widgets: correctly format titles
gnomemusic/widgets.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 03721d7..f5b9728 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -273,14 +273,14 @@ class AlbumWidget(Gtk.EventBox):
escapedTitle = GLib.markup_escape_text(song.get_title(), -1)
if (song == currentSong):
- title = "<b>" + escapedTitle + "</b>"
+ title = "<b>%s</b>" % escapedTitle
iconVisible = True
songPassed = True
elif (songPassed):
- title = "<span>" + escapedTitle + "</span>"
+ title = "<span>%s</span>" % escapedTitle
iconVisible = False
else:
- title = "<span color='grey'>" + escapedTitle + "</span>"
+ title = "<span color='grey'>%s</span>" % escapedTitle
iconVisible = False
playlist.set_value(iter, 0, title)
playlist.set_value(iter, 9, iconVisible)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]