mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +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_ellipsize (Pango.EllipsizeMode.END);
|
||||||
label.set_alignment (0.0f, 0.5f);
|
label.set_alignment (0.0f, 0.5f);
|
||||||
label.set_selectable(true);
|
label.set_selectable(true);
|
||||||
|
label.set_use_markup(true);
|
||||||
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1);
|
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1);
|
||||||
row++;
|
row++;
|
||||||
}
|
}
|
||||||
|
@ -471,6 +472,7 @@ public class MediaInfo.Info : VBox
|
||||||
label.set_ellipsize (Pango.EllipsizeMode.END);
|
label.set_ellipsize (Pango.EllipsizeMode.END);
|
||||||
label.set_alignment (0.0f, 0.5f);
|
label.set_alignment (0.0f, 0.5f);
|
||||||
label.set_selectable(true);
|
label.set_selectable(true);
|
||||||
|
label.set_use_markup(true);
|
||||||
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1);
|
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1);
|
||||||
row++;
|
row++;
|
||||||
}
|
}
|
||||||
|
@ -578,6 +580,9 @@ public class MediaInfo.Info : VBox
|
||||||
str += "\n";
|
str += "\n";
|
||||||
v = s.get_value (fn);
|
v = s.get_value (fn);
|
||||||
vstr = v.serialize ().compress ();
|
vstr = v.serialize ().compress ();
|
||||||
|
if (vstr.has_prefix("http://") || vstr.has_prefix("https://")) {
|
||||||
|
vstr = "<a href=\"" + vstr + "\">" + vstr + "</a>";
|
||||||
|
}
|
||||||
str += fn + " = " + vstr;
|
str += fn + " = " + vstr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue