diff options
Diffstat (limited to 'pluma/pluma-print-job.c')
-rw-r--r-- | pluma/pluma-print-job.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pluma/pluma-print-job.c b/pluma/pluma-print-job.c index cfc92054..69de06c3 100644 --- a/pluma/pluma-print-job.c +++ b/pluma/pluma-print-job.c @@ -269,35 +269,41 @@ restore_button_clicked (GtkButton *button, { if (pluma_prefs_manager_print_font_body_can_set ()) { - const gchar *font; + gchar *font; font = pluma_prefs_manager_get_default_print_font_body (); gtk_font_button_set_font_name ( GTK_FONT_BUTTON (job->priv->body_fontbutton), font); + + g_free (font); } if (pluma_prefs_manager_print_font_header_can_set ()) { - const gchar *font; + gchar *font; font = pluma_prefs_manager_get_default_print_font_header (); gtk_font_button_set_font_name ( GTK_FONT_BUTTON (job->priv->headers_fontbutton), font); + + g_free (font); } if (pluma_prefs_manager_print_font_numbers_can_set ()) { - const gchar *font; + gchar *font; font = pluma_prefs_manager_get_default_print_font_numbers (); gtk_font_button_set_font_name ( GTK_FONT_BUTTON (job->priv->numbers_fontbutton), font); + + g_free (font); } } |