aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-10-25 23:23:19 +0000
committernyamatongwe <unknown>2003-10-25 23:23:19 +0000
commit696c95c34cc90a55e716ec070a3dd31ce958520c (patch)
tree86b074839f63bfe27c8c792295e8a724e4fd16f2
parentaa8692fee30049b318957e45b87819acae57961f (diff)
downloadscintilla-mirror-696c95c34cc90a55e716ec070a3dd31ce958520c.tar.gz
Removed setting autocompletion font to same as text when the text is using
a GDK font. There have been crashes with this.
-rw-r--r--gtk/PlatGTK.cxx13
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);
}