From 696c95c34cc90a55e716ec070a3dd31ce958520c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 25 Oct 2003 23:23:19 +0000 Subject: Removed setting autocompletion font to same as text when the text is using a GDK font. There have been crashes with this. --- gtk/PlatGTK.cxx | 13 ++----------- 1 file 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); } -- cgit v1.2.3