Remove call to deprecated gtk_style_context_get_font
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 9 Aug 2016 23:02:07 +0000 (01:02 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 9 Aug 2016 23:02:07 +0000 (01:02 +0200)
src/ui/gui/psppire-data-window.c

index b2f61c60a30d45acc1608b6bc33c47c7dda60866..1cccc20ea0a8d7d0247a892ad19e72a0d0022888 100644 (file)
@@ -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", &current_font, NULL);
 
   gtk_font_chooser_set_font_desc (GTK_FONT_CHOOSER (dialog), current_font);