mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
info: make urls in tags clickable
This commit is contained in:
parent
b70b3d67de
commit
24f9916daa
1 changed files with 5 additions and 0 deletions
|
@ -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 = "<a href=\"" + vstr + "\">" + vstr + "</a>";
|
||||
}
|
||||
str += fn + " = " + vstr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue