escape texts for labels on cover panel
This commit is contained in:
parent
14a016dd1b
commit
1bc7070231
1 changed files with 21 additions and 3 deletions
|
|
@ -839,9 +839,27 @@ class CoverPanel(Panel, Gtk.VBox):
|
|||
|
||||
|
||||
def set_album(self, album):
|
||||
self._album_title_label.set_markup("<b><big>{}</big></b>".format(album.get_title()))
|
||||
self._album_date_label.set_markup("<big>{}</big>".format(', '.join(album.get_dates())))
|
||||
self._album_artist_label.set_markup("<big>{}</big>".format(', '.join(album.get_artists())))
|
||||
self._album_title_label.set_markup(
|
||||
"<b><big>{}</big></b>".format(
|
||||
GObject.markup_escape_text(
|
||||
album.get_title()
|
||||
)
|
||||
)
|
||||
)
|
||||
self._album_date_label.set_markup(
|
||||
"<big>{}</big>".format(
|
||||
GObject.markup_escape_text(
|
||||
', '.join(album.get_dates())
|
||||
)
|
||||
)
|
||||
)
|
||||
self._album_artist_label.set_markup(
|
||||
"<big>{}</big>".format(
|
||||
GObject.markup_escape_text(
|
||||
', '.join(album.get_artists())
|
||||
)
|
||||
)
|
||||
)
|
||||
self._set_cover(album)
|
||||
self._set_tracks(album)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue