talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 205a320fd295a8f8724baa50e49211807747725a
parent f38052f971fdb9842930f7dee4a3e29c3a4f1490
Author: wwp <subscript@free.fr>
Date:   Thu,  2 Sep 2021 18:09:20 +0200

Fix wrong color format used for visible URI text color.

Diffstat:
Msrc/uri_opener.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/uri_opener.c b/src/uri_opener.c @@ -307,10 +307,12 @@ static void uri_opener_list_view_insert_uri(GtkWidget *list_view, } if (phishing_attempt) { GdkColor color; + gchar buf[8]; + g_snprintf(buf, sizeof buf, "#%6.6lx", prefs_common.color[COL_LOG_ERROR]); gtkut_convert_int_to_gdk_color(prefs_common.color[COL_LOG_ERROR], &color); label = g_markup_printf_escaped("<span color=\"%s\"><b>%s</b></span>\n%s", - prefs_common.color[COL_LOG_ERROR], visible, uri->uri); + buf, visible, uri->uri); } else label = g_markup_printf_escaped("<b>%s</b>\n%s", visible, uri->uri); }