summaryrefslogtreecommitdiff
path: root/pluma/dialogs/pluma-preferences-dialog.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-05-06 00:09:34 +0200
committerPablo Barciela <[email protected]>2018-05-06 00:20:25 +0200
commita3dfb665d34094f15c72b967974490df4ddad31b (patch)
treec91c60a59b7b2662199f5439089c57dfb4d1ee05 /pluma/dialogs/pluma-preferences-dialog.c
parenta28da51ba62baded1ea23e6ae9f4c907d443b242 (diff)
downloadpluma-a3dfb665d34094f15c72b967974490df4ddad31b.tar.bz2
pluma-a3dfb665d34094f15c72b967974490df4ddad31b.tar.xz
avoid deprecated 'gtk_font_button_set/get_font_name'
Diffstat (limited to 'pluma/dialogs/pluma-preferences-dialog.c')
-rw-r--r--pluma/dialogs/pluma-preferences-dialog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pluma/dialogs/pluma-preferences-dialog.c b/pluma/dialogs/pluma-preferences-dialog.c
index 23b94ba4..5afacea5 100644
--- a/pluma/dialogs/pluma-preferences-dialog.c
+++ b/pluma/dialogs/pluma-preferences-dialog.c
@@ -539,17 +539,17 @@ default_font_font_checkbutton_toggled (GtkToggleButton *button,
}
static void
-editor_font_button_font_set (GtkFontButton *font_button,
+editor_font_button_font_set (GtkFontChooser *font_button,
PlumaPreferencesDialog *dlg)
{
const gchar *font_name;
pluma_debug (DEBUG_PREFS);
- g_return_if_fail (font_button == GTK_FONT_BUTTON (dlg->priv->font_button));
+ g_return_if_fail (font_button == GTK_FONT_CHOOSER (dlg->priv->font_button));
/* FIXME: Can this fail? Gtk docs are a bit terse... 21-02-2004 pbor */
- font_name = gtk_font_button_get_font_name (font_button);
+ font_name = gtk_font_chooser_get_font (font_button);
if (!font_name)
{
g_warning ("Could not get font name");
@@ -594,8 +594,8 @@ setup_font_colors_page_font_section (PlumaPreferencesDialog *dlg)
editor_font = pluma_prefs_manager_get_editor_font ();
if (editor_font != NULL)
{
- gtk_font_button_set_font_name (GTK_FONT_BUTTON (dlg->priv->font_button),
- editor_font);
+ gtk_font_chooser_set_font (GTK_FONT_CHOOSER (dlg->priv->font_button),
+ editor_font);
g_free (editor_font);
}