From 8c0bf328e0bd620ea38a4ca9eebcb19db16a56f2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 13 Apr 2003 00:18:48 +0000 Subject: Avoid resetting scroll bars when changing documents as that leads to synchronous painting on GTK+ before completely set up for new document. --- src/Editor.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index b126c8904..44399a5fb 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4872,7 +4872,10 @@ void Editor::SetDocPointer(Document *document) { pdoc->AddWatcher(this, 0); Redraw(); - SetScrollBars(); + // Removed because of reentrance problems of GTK+ 2.x + // where changing a scroll bar position causes synchronous + // painting before lexer and styling state is set up. + //SetScrollBars(); } // Recursively expand a fold, making lines visible except where they have an unexpanded parent -- cgit v1.2.3