Replace gtk_widget_get_style in favour of gtk_widget_get_style_context
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 11 Jul 2016 19:51:42 +0000 (21:51 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 11 Jul 2016 20:00:07 +0000 (22:00 +0200)
src/ui/gui/psppire-data-window.c

index 7917274da56a619284018ef89cc5f970d06db4c9..5b300295b37b2fbd40afaeecde6a1dc9274bd3c2 100644 (file)
@@ -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);