From 91d7bd0dd88edf632140735fd6dfa55990946f3c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 8 Jun 2023 17:35:10 +0300 Subject: [PATCH 17/17] gtk: Make Small Font setting to take effect See osdn #48186 Signed-off-by: Marko Lindqvist --- client/options.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/options.c b/client/options.c index 0004b57f11..0068ad90ae 100644 --- a/client/options.c +++ b/client/options.c @@ -707,7 +707,7 @@ bool option_reset(struct option *poption) } /************************************************************************//** - Set the function to call every time this option changes. Can be NULL. + Set the function to call every time this option changes. Can be NULL. ****************************************************************************/ void option_set_changed_callback(struct option *poption, void (*callback) (struct option *)) @@ -2515,7 +2515,7 @@ static struct client_option client_options[] = { GEN_FONT_OPTION(gui_gtk2_font_small, "small_font", NULL, NULL, COC_FONT, GUI_GTK2, - "Sans 9", NULL), + "Sans 9", font_changed_callback), GEN_FONT_OPTION(gui_gtk2_font_comment_label, "comment_label", NULL, NULL, COC_FONT, GUI_GTK2, @@ -2723,12 +2723,12 @@ static struct client_option client_options[] = { "Sans Italic 10", font_changed_callback), GEN_FONT_OPTION(gui_gtk3_font_small, "small_font", N_("Small Font"), - N_("This font is used for any small font request. For " + N_("This font is used for any small font request. For " "example, it is used for display the building lists " "in the city dialog, the Economy report or the Units " "report."), COC_FONT, GUI_GTK3, - "Sans 9", NULL), + "Sans 9", font_changed_callback), GEN_FONT_OPTION(gui_gtk3_font_comment_label, "comment_label", N_("Comment Label"), N_("This font is used to display comment labels, such as " @@ -2944,12 +2944,12 @@ static struct client_option client_options[] = { "Sans Italic 10", font_changed_callback), GEN_FONT_OPTION(gui_gtk3_22_font_small, "small_font", N_("Small Font"), - N_("This font is used for any small font request. For " + N_("This font is used for any small font request. For " "example, it is used for display the building lists " "in the city dialog, the Economy report or the Units " "report."), COC_FONT, GUI_GTK3_22, - "Sans 9", NULL), + "Sans 9", font_changed_callback), GEN_FONT_OPTION(gui_gtk3_22_font_comment_label, "comment_label", N_("Comment Label"), N_("This font is used to display comment labels, such as " @@ -3165,12 +3165,12 @@ static struct client_option client_options[] = { "Sans Italic 10", font_changed_callback), GEN_FONT_OPTION(gui_gtk4_font_small, "small_font", N_("Small Font"), - N_("This font is used for any small font request. For " + N_("This font is used for any small font request. For " "example, it is used for display the building lists " "in the city dialog, the Economy report or the Units " "report."), COC_FONT, GUI_GTK4, - "Sans 9", NULL), + "Sans 9", font_changed_callback), GEN_FONT_OPTION(gui_gtk4_font_comment_label, "comment_label", N_("Comment Label"), N_("This font is used to display comment labels, such as " -- 2.39.2