Gtk3: Fix font selection of variable and dataview.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 19 Jun 2015 09:00:51 +0000 (11:00 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 19 Jun 2015 09:00:51 +0000 (11:00 +0200)
Closes bug #45337

src/ui/gui/psppire-data-editor.c

index 09729bc42510353fbca895a62ad1a26d7d96b245..08c72e890cae112cb76d65e3fc398a30272f54bc 100644 (file)
@@ -796,12 +796,8 @@ static void
 set_font_recursively (GtkWidget *w, gpointer data)
 {
   PangoFontDescription *font_desc = data;
-  GtkRcStyle *style = gtk_widget_get_modifier_style (w);
 
-  pango_font_description_free (style->font_desc);
-  style->font_desc = pango_font_description_copy (font_desc);
-
-  gtk_widget_modify_style (w, style);
+  gtk_widget_override_font (w, font_desc);
 
   if ( GTK_IS_CONTAINER (w))
     gtk_container_foreach (GTK_CONTAINER (w), set_font_recursively, font_desc);