[pitivi] ui: Escape markup in uri to avoid GTK warnings
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui: Escape markup in uri to avoid GTK warnings
- Date: Sat, 28 Jan 2017 00:00:38 +0000 (UTC)
commit 3d59a68366dd1c7bb46d64c714310dfb316e7590
Author: Suhas Nayak <suhas2go gmail com>
Date: Sat Jan 28 05:00:02 2017 +0530
ui: Escape markup in uri to avoid GTK warnings
GTK otherwise parses uri as markup text.
This fixes T7679
Differential Revision: https://phabricator.freedesktop.org/D1624
pitivi/utils/ui.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 3df3d01..a176aee 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -251,7 +251,8 @@ def beautify_asset(asset):
asset (GES.Asset): The asset to display.
"""
uri = get_proxy_target(asset).props.id
- res = ["<b>" + path_from_uri(uri) + "</b>"]
+ path = path_from_uri(uri)
+ res = ["<b>" + GLib.markup_escape_text(path) + "</b>"]
ranks = {
DiscovererVideoInfo: 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]