From: John Darrington Date: Tue, 9 Aug 2016 23:02:07 +0000 (+0200) Subject: Remove call to deprecated gtk_style_context_get_font X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e616e74c79756510aa504b4a2885b2a9b18ed546;p=pspp Remove call to deprecated gtk_style_context_get_font --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index b2f61c60a3..1cccc20ea0 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -788,7 +788,9 @@ fonts_activate (PsppireDataWindow *de) GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (de)); GtkWidget *dialog = gtk_font_chooser_dialog_new (NULL, GTK_WINDOW (toplevel)); 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); + const PangoFontDescription *current_font ; + + gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL, "font", ¤t_font, NULL); gtk_font_chooser_set_font_desc (GTK_FONT_CHOOSER (dialog), current_font);