From 654fff13b4fbab4e4927783a80350b69b3b5dd08 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 11 Jul 2016 21:51:42 +0200 Subject: [PATCH] Replace gtk_widget_get_style in favour of gtk_widget_get_style_context --- src/ui/gui/psppire-data-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index 7917274da5..5b300295b3 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -696,8 +696,8 @@ fonts_activate (PsppireDataWindow *de) { GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (de)); GtkWidget *dialog = gtk_font_chooser_dialog_new (NULL, GTK_WINDOW (toplevel)); - GtkStyle *style = gtk_widget_get_style (GTK_WIDGET(de->data_editor)); - PangoFontDescription *current_font = style->font_desc; + GtkStyleContext *style = gtk_widget_get_style_context (GTK_WIDGET(de->data_editor)); + const PangoFontDescription *current_font = gtk_style_context_get_font (style, GTK_STATE_FLAG_NORMAL); gtk_font_chooser_set_font_desc (GTK_FONT_CHOOSER (dialog), current_font); -- 2.30.2