[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-90-g758dc7cf4

paul at claws-mail.org paul at claws-mail.org
Wed Apr 21 14:13:16 CEST 2021


The branch, gtk3 has been updated
       via  758dc7cf4ef1f156e6768002a37625a02e5b6988 (commit)
      from  f5a3eb4181860287167c2f6817a9783134138a12 (commit)

Summary of changes:
 src/plugins/fancy/fancy_viewer.c | 11 +++++++++++
 1 file changed, 11 insertions(+)


- Log -----------------------------------------------------------------
commit 758dc7cf4ef1f156e6768002a37625a02e5b6988
Author: Paul <paul at claws-mail.org>
Date:   Wed Apr 21 13:12:27 2021 +0100

    Make fancy respect default font size for messageview
    
    patch by Paweł Pękala

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index a6f17a804..396a0fd38 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -95,6 +95,17 @@ static void fancy_apply_prefs(FancyViewer *viewer)
 		"serif-font-family", "Times New Roman",
 #endif
 		NULL);
+	if (fancy_prefs.stylesheet == NULL || strlen(fancy_prefs.stylesheet) == 0) {
+		gchar **msg_font_params = g_strsplit(prefs_common.textfont, " ", 0);
+		guint params_len = g_strv_length(msg_font_params);
+
+		if (params_len > 0) {
+			gint msg_font_size = g_ascii_strtoll(msg_font_params[params_len - 1], NULL, 10);
+			g_object_set(viewer->settings,
+				"default-font-size", msg_font_size, NULL);
+		}
+		g_strfreev(msg_font_params);
+	}
 	webkit_web_view_set_settings(viewer->view, viewer->settings);
 	if (viewer->override_prefs_remote_content)
 		webkit_web_context_set_network_proxy_settings(webkit_web_context_get_default(), WEBKIT_NETWORK_PROXY_MODE_DEFAULT, NULL);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list