[gtksourceview] Use low priority when scanning regions.



commit c561ce075e47daf5d7c73566a2df9bf92eddabe3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Dec 23 20:14:01 2009 +0100

    Use low priority when scanning regions.

 .../words/gtksourcecompletionwordsbuffer.c         |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index 972b17d..023b17b 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -497,8 +497,10 @@ add_scan_region (GtkSourceCompletionWordsBuffer *buffer,
 	    !gtk_source_completion_words_library_is_locked (buffer->priv->library))
 	{
 		buffer->priv->idle_scan_id = 
-			g_idle_add ((GSourceFunc)idle_scan_regions,
-			            buffer);
+			g_idle_add_full (G_PRIORITY_LOW,
+			                 (GSourceFunc)idle_scan_regions,
+			                 buffer,
+			                 NULL);
 	}
 }
 
@@ -629,8 +631,10 @@ on_library_unlock (GtkSourceCompletionWordsBuffer *buffer)
 	    buffer->priv->scan_regions != NULL)
 	{
 		buffer->priv->idle_scan_id = 
-			g_idle_add ((GSourceFunc)idle_scan_regions,
-			            buffer);
+			g_idle_add_full (G_PRIORITY_LOW,
+			                 (GSourceFunc)idle_scan_regions,
+			                 buffer,
+			                 NULL);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]