[balsa/wip/gtk4: 109/351] Replace gtk_font_button_set_show_size()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4: 109/351] Replace gtk_font_button_set_show_size()
- Date: Wed, 23 May 2018 21:26:06 +0000 (UTC)
commit ea15ac13449f162b80cad61d4c8954e7c5a76ec7
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Jan 4 15:04:11 2018 -0500
Replace gtk_font_button_set_show_size()
pref-manager: Replace gtk_font_button_set_show_size()
with gtk_font_chooser_set_level().
src/pref-manager.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/pref-manager.c b/src/pref-manager.c
index 73755e6..26f6afe 100644
--- a/src/pref-manager.c
+++ b/src/pref-manager.c
@@ -1896,7 +1896,9 @@ font_modified_cb(GtkWidget * widget, GtkWidget * pbox)
properties_modified_cb(widget, pbox);
- gtk_font_button_set_show_size(GTK_FONT_BUTTON(widget), show_size);
+ gtk_font_chooser_set_level(GTK_FONT_CHOOSER(widget),
+ show_size ? GTK_FONT_CHOOSER_LEVEL_FONT
+ : GTK_FONT_CHOOSER_LEVEL_FACE);
g_object_set_data(G_OBJECT(widget), "font-modified",
GINT_TO_POINTER(TRUE));
}
@@ -2458,10 +2460,10 @@ pm_grid_add_preview_font_group(GtkWidget * grid_widget)
use_default_font_size = TRUE;
if (use_default_font_size) {
- gtk_font_button_set_show_size(GTK_FONT_BUTTON
- (pui->message_font_button), FALSE);
- gtk_font_button_set_show_size(GTK_FONT_BUTTON
- (pui->subject_font_button), FALSE);
+ gtk_font_chooser_set_level(GTK_FONT_CHOOSER(pui->message_font_button),
+ GTK_FONT_CHOOSER_LEVEL_FACE);
+ gtk_font_chooser_set_level(GTK_FONT_CHOOSER(pui->subject_font_button),
+ GTK_FONT_CHOOSER_LEVEL_FACE);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON
(pui->use_default_font_size), TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]