[Commits] [SCM] claws branch, master, updated. 3.17.8-76-g009886072
paul at claws-mail.org
paul at claws-mail.org
Wed Apr 21 14:12:32 CEST 2021
The branch, master has been updated
via 009886072c2769cf2cc946cb2175ac14704a504d (commit)
from 5ec726e9094b2265bd4b55c82f5bc201b8b745c5 (commit)
Summary of changes:
src/plugins/fancy/fancy_viewer.c | 11 +++++++++++
1 file changed, 11 insertions(+)
- Log -----------------------------------------------------------------
commit 009886072c2769cf2cc946cb2175ac14704a504d
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 bc2a81767..abade3040 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -98,6 +98,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);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list