[gedit] print: remove deprecated usage of gtk_font_button_get_font_name
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] print: remove deprecated usage of gtk_font_button_get_font_name
- Date: Wed, 28 Nov 2018 22:08:20 +0000 (UTC)
commit a7bd73f1553d8adb513a6f91cea9cb1ebe9b7936
Author: Sebastien Lafargue <slafargue gnome org>
Date: Tue Nov 27 18:23:54 2018 +0100
print: remove deprecated usage of gtk_font_button_get_font_name
deprrecated: since gtk 3.22
replaced by: gtk_font_chooser_get_font
gedit/gedit-print-job.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-print-job.c b/gedit/gedit-print-job.c
index f48f16403..6d4afb2e0 100644
--- a/gedit/gedit-print-job.c
+++ b/gedit/gedit-print-job.c
@@ -366,9 +366,9 @@ custom_widget_apply_cb (GtkPrintOperation *operation,
syntax = gtk_toggle_button_get_active (job->syntax_checkbutton);
page_header = gtk_toggle_button_get_active (job->page_header_checkbutton);
- body_font = gtk_font_button_get_font_name (job->body_fontbutton);
- header_font = gtk_font_button_get_font_name (job->headers_fontbutton);
- numbers_font = gtk_font_button_get_font_name (job->numbers_fontbutton);
+ body_font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (job->body_fontbutton));
+ header_font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (job->headers_fontbutton));
+ numbers_font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (job->numbers_fontbutton));
g_settings_set_boolean (job->gsettings,
GEDIT_SETTINGS_PRINT_SYNTAX_HIGHLIGHTING,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]