From 551a8ab98dfffa718374fbbf2e575006df29d273 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 13 Mar 2013 09:38:48 +1100 Subject: Add different types of task to StyleNeeded mechanism, renaming to WorkNeeded. Ask to perform update UI work for some selection moves. --- gtk/ScintillaGTK.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 729db64ee..6b2e15e10 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -296,7 +296,7 @@ private: static gboolean TimeOut(ScintillaGTK *sciThis); static gboolean IdleCallback(ScintillaGTK *sciThis); static gboolean StyleIdle(ScintillaGTK *sciThis); - virtual void QueueStyling(int upTo); + virtual void QueueIdleWork(WorkNeeded::workItems items, int upTo); static void PopUpCB(GtkMenuItem *menuItem, ScintillaGTK *sciThis); #if GTK_CHECK_VERSION(3,0,0) @@ -2768,11 +2768,11 @@ gboolean ScintillaGTK::StyleIdle(ScintillaGTK *sciThis) { return FALSE; } -void ScintillaGTK::QueueStyling(int upTo) { - Editor::QueueStyling(upTo); - if (!styleNeeded.active) { +void ScintillaGTK::QueueIdleWork(WorkNeeded::workItems items, int upTo) { + Editor::QueueIdleWork(items, upTo); + if (!workNeeded.active) { // Only allow one style needed to be queued - styleNeeded.active = true; + workNeeded.active = true; g_idle_add_full(G_PRIORITY_HIGH_IDLE, reinterpret_cast(StyleIdle), this, NULL); } -- cgit v1.2.3