diff options
| -rw-r--r-- | gtk/PlatGTK.cxx | 13 | 
1 files changed, 2 insertions, 11 deletions
| diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 5367a6227..a24c9f1f6 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1897,17 +1897,8 @@ void ListBoxX::SetFont(Font &scint_font) {  		gtk_style_unref(style);  	}  #else -	if (PFont(scint_font)->pfont) { -		// Current font is GDK font -		GtkStyle *styleCurrent = gtk_widget_get_style(GTK_WIDGET(PWidget(list))); -		GdkFont *fontCurrent = gtk_style_get_font(styleCurrent); -		if (!gdk_font_equal(fontCurrent, PFont(scint_font)->pfont)) { -			GtkStyle *styleNew = gtk_style_copy(styleCurrent); -			gtk_style_set_font(styleNew, PFont(scint_font)->pfont); -			gtk_widget_set_style(GTK_WIDGET(PWidget(list)), styleNew); -			gtk_style_unref(styleCurrent); -		} -	} else if (PFont(scint_font)->pfd) { +	// Only do for Pango font as there have been crashes for GDK fonts +	if (PFont(scint_font)->pfd) {  		// Current font is Pango font  		gtk_widget_modify_font(PWidget(list), PFont(scint_font)->pfd);  	} | 
