From: John Darrington Date: Fri, 19 Jun 2015 09:00:51 +0000 (+0200) Subject: Gtk3: Fix font selection of variable and dataview. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f2c196194f630775345533b355d536018f690e5;p=pspp Gtk3: Fix font selection of variable and dataview. Closes bug #45337 --- diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index 09729bc425..08c72e890c 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -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);