Summary Files Commits Branches @commit @diff @stats
path: root / downloads.c
diff options
context:
space:
mode:
Commit00e6ddaee5b24b98ce1082985ef48dc6f6f52319 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-05-04 00:54:08 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-05-04 00:54:08 +0200
Fileseb3c58cefc70c8d3e5c16823ddb1cb076c703bc7 /downloads.c
goodwolf-00e6ddaee5b24b98ce1082985ef48dc6f6f52319.tar
goodwolf-00e6ddaee5b24b98ce1082985ef48dc6f6f52319.tar.gz
goodwolf-00e6ddaee5b24b98ce1082985ef48dc6f6f52319.zip
Parent76b542b1b833e6bd32fbc6980077ea4bc8b5a176 (diff)
Downloads: Make it an hyperlink
1 files changed, 5 insertions, 1 deletions
-rw-r--r--downloads.c6
diff --git a/downloads.c b/downloads.c
index 0c1ee3d..2443a3e 100644
--- a/downloads.c
+++ b/downloads.c
@@ -51,9 +51,13 @@ downloadCb_created_destination(WebKitDownload *webkit_download,
gpointer user_data)
{
(void)webkit_download;
+ char *markup;
struct Download *download = (struct Download *)user_data;
- gtk_label_set_text(GTK_LABEL(download->file_path), destination);
+ markup = g_markup_printf_escaped("<a href=\"%s\">%s</a>", destination, destination);
+
+ gtk_label_set_markup(GTK_LABEL(download->file_path), markup);
+ g_free(markup);
}
gboolean