From 145b30820b921b141b7e48c1fb5691ed18c33cbe Mon Sep 17 00:00:00 2001 From: coderkun Date: Sun, 22 May 2016 12:28:59 +0200 Subject: [PATCH] escape texts for track marks on cover panel --- mcg/mcgGtk.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mcg/mcgGtk.py b/mcg/mcgGtk.py index 7adb584..d40bbc4 100755 --- a/mcg/mcgGtk.py +++ b/mcg/mcgGtk.py @@ -863,7 +863,13 @@ class CoverPanel(mcg.Base): cur_length = length if length > 0 and length < album.get_length(): cur_length = cur_length + 1 - self._songs_scale.add_mark(cur_length, Gtk.PositionType.RIGHT, track.get_title()) + self._songs_scale.add_mark( + cur_length, + Gtk.PositionType.RIGHT, + GObject.markup_escape_text( + track.get_title() + ) + ) length = length + track.get_length() self._songs_scale.add_mark(length, Gtk.PositionType.RIGHT, "{0[0]:02d}:{0[1]:02d} minutes".format(divmod(length, 60)))