From 8df69644623b873b888bdeef5ff9367bf39ae33f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 2 Sep 2012 21:03:19 +0200 Subject: [PATCH] [Rigo] Application: escape _("N/A") Application.get_markup() and Application.get_extended_markup() must always return bytestring (decoded) data to make Gtk3 libs and code happy. It happened that _("N/A") was returned without passing through prepare_markup() or escape_markup(). This commit fixes it. --- rigo/rigo/models/application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rigo/rigo/models/application.py b/rigo/rigo/models/application.py index 78de9c50b..6bea7a1a2 100644 --- a/rigo/rigo/models/application.py +++ b/rigo/rigo/models/application.py @@ -878,7 +878,7 @@ class Application(object): if name is None: if self._vanished_callback is not None: self._vanished_callback(self) - return _("N/A") + return escape_markup(_("N/A")) name = " ".join([x.capitalize() for x in \ name.replace("-"," ").split()]) return escape_markup(name) @@ -1294,7 +1294,7 @@ class Application(object): inst_repo = self._entropy.installed_repository() strict = repo.getStrictData(self._pkg_id) if strict is None: - return _("N/A") + return escape_markup(_("N/A")) key, slot, version, tag, revision, atom = strict name = key.split("/", 1)[-1]