aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-03-13 09:38:48 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-03-13 09:38:48 +1100
commit16bbde7481613d3227d54490c07bcf5c8aecb8eb (patch)
tree5f8f658adfe71318a3a4893b128fd53f5fdf4d19 /gtk
parent3ec002dcf312faa7c72220062f1941cf366e744b (diff)
downloadscintilla-mirror-16bbde7481613d3227d54490c07bcf5c8aecb8eb.tar.gz
Add different types of task to StyleNeeded mechanism, renaming to WorkNeeded.
Ask to perform update UI work for some selection moves.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/ScintillaGTK.cxx10
1 files changed, 5 insertions, 5 deletions
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<GSourceFunc>(StyleIdle), this, NULL);
}