From a51205b50149745064a8b51a92a8b3fc77dc0a50 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 14 Feb 2003 13:31:09 +0000 Subject: Turn double buffering off for Scintilla to avoid flashing. --- gtk/ScintillaGTK.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index ebd6556a1..64b283dc1 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -507,6 +507,9 @@ void ScintillaGTK::Initialise() { parentClass = reinterpret_cast( gtk_type_class(gtk_container_get_type())); +#if GTK_MAJOR_VERSION >= 2 + gtk_widget_set_double_buffered(PWidget(wMain), FALSE); +#endif GTK_WIDGET_SET_FLAGS(PWidget(wMain), GTK_CAN_FOCUS); GTK_WIDGET_SET_FLAGS(GTK_WIDGET(PWidget(wMain)), GTK_SENSITIVE); gtk_widget_set_events(PWidget(wMain), -- cgit v1.2.3