From 9f2c196194f630775345533b355d536018f690e5 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 19 Jun 2015 11:00:51 +0200 Subject: [PATCH] Gtk3: Fix font selection of variable and dataview. Closes bug #45337 --- src/ui/gui/psppire-data-editor.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); -- 2.30.2