From 24f9916daafcb094d07c7d60023064952683ac4c Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Tue, 30 Nov 2010 11:19:35 +0200 Subject: [PATCH] info: make urls in tags clickable --- mediainfo/src/mi-info.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala index d7c5960046..608265b3bf 100644 --- a/mediainfo/src/mi-info.vala +++ b/mediainfo/src/mi-info.vala @@ -373,6 +373,7 @@ public class MediaInfo.Info : VBox label.set_ellipsize (Pango.EllipsizeMode.END); label.set_alignment (0.0f, 0.5f); label.set_selectable(true); + label.set_use_markup(true); table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1); row++; } @@ -471,6 +472,7 @@ public class MediaInfo.Info : VBox label.set_ellipsize (Pango.EllipsizeMode.END); label.set_alignment (0.0f, 0.5f); label.set_selectable(true); + label.set_use_markup(true); table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1); row++; } @@ -578,6 +580,9 @@ public class MediaInfo.Info : VBox str += "\n"; v = s.get_value (fn); vstr = v.serialize ().compress (); + if (vstr.has_prefix("http://") || vstr.has_prefix("https://")) { + vstr = "" + vstr + ""; + } str += fn + " = " + vstr; }