Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
1.75k stars 94 forks source link

links in label #364

Open kotontrion opened 3 months ago

kotontrion commented 3 months ago

you can use links in labels by using the <a>tag. But this tag is not part of Pango markup and therefore it isn't recognized as valid markup and GLib.markup_escape_textis used to sanitize the text, even though it would be valid.

currently this can be circumvented by using the set_markup method to set the labels text like this:

Widget.Label({
  ...
}).on("realize", self => {
  self.set_markup("This is a <a href=\"https://www.github.com\">test link</a>")
})