[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-938-gacd389ea4
paul at claws-mail.org
paul at claws-mail.org
Mon Mar 23 13:09:30 CET 2020
The branch, gtk3 has been updated
via acd389ea490ed0c21416f361eb2d7f1dde418731 (commit)
from a0b786ab6d0e9287f5e61541445618659d9b0cb5 (commit)
Summary of changes:
src/plugins/litehtml_viewer/lh_prefs.c | 4 ++--
src/prefs_fonts.c | 20 ++++++++++----------
2 files changed, 12 insertions(+), 12 deletions(-)
- Log -----------------------------------------------------------------
commit acd389ea490ed0c21416f361eb2d7f1dde418731
Author: paul <paul at claws-mail.org>
Date: Mon Mar 23 12:09:26 2020 +0000
replace deprecated gtk_font_button_get_font_name()
diff --git a/src/plugins/litehtml_viewer/lh_prefs.c b/src/plugins/litehtml_viewer/lh_prefs.c
index e8af14110..2932b9b44 100644
--- a/src/plugins/litehtml_viewer/lh_prefs.c
+++ b/src/plugins/litehtml_viewer/lh_prefs.c
@@ -176,8 +176,8 @@ static void save_lh_prefs_page(PrefsPage *page)
GTK_SPIN_BUTTON(prefs_page->image_cache_size));
g_free(lh_prefs.default_font);
- lh_prefs.default_font = g_strdup(gtk_font_button_get_font_name(
- GTK_FONT_BUTTON(prefs_page->default_font)));
+ lh_prefs.default_font = g_strdup(gtk_font_chooser_get_font(
+ GTK_FONT_CHOOSER(prefs_page->default_font)));
save_prefs();
}
diff --git a/src/prefs_fonts.c b/src/prefs_fonts.c
index a957b06a3..685954e7e 100644
--- a/src/prefs_fonts.c
+++ b/src/prefs_fonts.c
@@ -208,27 +208,27 @@ static void prefs_fonts_save(PrefsPage *_page)
FontsPage *fonts = (FontsPage *) _page;
g_free(prefs_common.boldfont);
- prefs_common.boldfont = g_strdup(gtk_font_button_get_font_name
- (GTK_FONT_BUTTON(fonts->entry_folderview_boldfont)));
+ prefs_common.boldfont = g_strdup(gtk_font_chooser_get_font
+ (GTK_FONT_CHOOSER(fonts->entry_folderview_boldfont)));
g_free(prefs_common.normalfont);
- prefs_common.normalfont = g_strdup(gtk_font_button_get_font_name
- (GTK_FONT_BUTTON(fonts->entry_folderview_normalfont)));
+ prefs_common.normalfont = g_strdup(gtk_font_chooser_get_font
+ (GTK_FONT_CHOOSER(fonts->entry_folderview_normalfont)));
g_free(prefs_common.smallfont);
- prefs_common.smallfont = g_strdup(gtk_font_button_get_font_name
- (GTK_FONT_BUTTON(fonts->entry_folderview_smallfont)));
+ prefs_common.smallfont = g_strdup(gtk_font_chooser_get_font
+ (GTK_FONT_CHOOSER(fonts->entry_folderview_smallfont)));
g_free(prefs_common.textfont);
- prefs_common.textfont = g_strdup(gtk_font_button_get_font_name
- (GTK_FONT_BUTTON(fonts->entry_messageviewfont)));
+ prefs_common.textfont = g_strdup(gtk_font_chooser_get_font
+ (GTK_FONT_CHOOSER(fonts->entry_messageviewfont)));
prefs_common.derive_from_normal_font = gtk_toggle_button_get_active
(GTK_TOGGLE_BUTTON(fonts->derive_from_normalfont_checkbutton));
g_free(prefs_common.printfont);
- prefs_common.printfont = g_strdup(gtk_font_button_get_font_name
- (GTK_FONT_BUTTON(fonts->entry_messageprintfont)));
+ prefs_common.printfont = g_strdup(gtk_font_chooser_get_font
+ (GTK_FONT_CHOOSER(fonts->entry_messageprintfont)));
prefs_common.use_different_print_font = gtk_toggle_button_get_active
(GTK_TOGGLE_BUTTON(fonts->print_checkbutton));
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list