diff options
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 8a09b105b..729db64ee 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2740,7 +2740,9 @@ int ScintillaGTK::TimeOut(ScintillaGTK *sciThis) {  gboolean ScintillaGTK::IdleCallback(ScintillaGTK *sciThis) {  	// Idler will be automatically stopped, if there is nothing  	// to do while idle. +#ifndef GDK_VERSION_3_6  	gdk_threads_enter(); +#endif  	bool ret = sciThis->Idle();  	if (ret == false) {  		// FIXME: This will remove the idler from GTK, we don't want to @@ -2748,14 +2750,20 @@ gboolean ScintillaGTK::IdleCallback(ScintillaGTK *sciThis) {  		// returns false (although, it should be harmless).  		sciThis->SetIdle(false);  	} +#ifndef GDK_VERSION_3_6  	gdk_threads_leave(); +#endif  	return ret;  }  gboolean ScintillaGTK::StyleIdle(ScintillaGTK *sciThis) { +#ifndef GDK_VERSION_3_6  	gdk_threads_enter(); +#endif  	sciThis->IdleStyling(); +#ifndef GDK_VERSION_3_6  	gdk_threads_leave(); +#endif  	// Idler will be automatically stopped  	return FALSE;  }  | 
