[Commits] [SCM] claws branch, master, updated. 3.18.0-63-g205a320fd

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 2 16:10:11 UTC 2021


The branch, master has been updated
       via  205a320fd295a8f8724baa50e49211807747725a (commit)
      from  f38052f971fdb9842930f7dee4a3e29c3a4f1490 (commit)

Summary of changes:
 src/uri_opener.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 205a320fd295a8f8724baa50e49211807747725a
Author: wwp <subscript at free.fr>
Date:   Thu Sep 2 18:09:20 2021 +0200

    Fix wrong color format used for visible URI text color.

diff --git a/src/uri_opener.c b/src/uri_opener.c
index 473edee86..b50321acc 100644
--- 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);
 	}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list