[gtksourceview] Use G_SOURCE_REMOVE and G_SOURCE_CONTINUE



commit 511b3bdda80cc09c40f72266ac2580ef27ebdd67
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 8 18:59:40 2013 +0200

    Use G_SOURCE_REMOVE and G_SOURCE_CONTINUE

 .../words/gtksourcecompletionwordsbuffer.c         |    2 +-
 gtksourceview/gtksourcecompletion.c                |    2 +-
 gtksourceview/gtksourcecompletioninfo.c            |    2 +-
 gtksourceview/gtksourcecontextengine.c             |   10 +++++-----
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c 
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index ed5250d..13ea6ff 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -382,7 +382,7 @@ initiate_scan (GtkSourceCompletionWordsBuffer *buffer)
                                    buffer,
                                    NULL);
 
-       return FALSE;
+       return G_SOURCE_REMOVE;
 }
 
 static void
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index b0ec25a..5e72ce6 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1309,7 +1309,7 @@ auto_completion_final (GtkSourceCompletion *completion)
 
        g_list_free (selection);
        g_object_unref (context);
-       return FALSE;
+       return G_SOURCE_REMOVE;
 }
 
 static void
diff --git a/gtksourceview/gtksourcecompletioninfo.c b/gtksourceview/gtksourcecompletioninfo.c
index d793ede..49e1747 100644
--- a/gtksourceview/gtksourcecompletioninfo.c
+++ b/gtksourceview/gtksourcecompletioninfo.c
@@ -112,7 +112,7 @@ idle_resize (GtkSourceCompletionInfo *info)
                                   MAX (1, window_height));
        }
 
-       return FALSE;
+       return G_SOURCE_REMOVE;
 }
 
 static void
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index 1e76962..82fcdec 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -2320,9 +2320,9 @@ all_analyzed (GtkSourceContextEngine *ce)
 static gboolean
 idle_worker (GtkSourceContextEngine *ce)
 {
-       gboolean retval = TRUE;
+       gboolean retval = G_SOURCE_CONTINUE;
 
-       g_return_val_if_fail (ce->priv->buffer != NULL, FALSE);
+       g_return_val_if_fail (ce->priv->buffer != NULL, G_SOURCE_REMOVE);
 
        /* analyze batch of text */
        update_syntax (ce, NULL, INCREMENTAL_UPDATE_TIME_SLICE);
@@ -2331,7 +2331,7 @@ idle_worker (GtkSourceContextEngine *ce)
        if (all_analyzed (ce))
        {
                ce->priv->incremental_update = 0;
-               retval = FALSE;
+               retval = G_SOURCE_REMOVE;
        }
 
        return retval;
@@ -2347,7 +2347,7 @@ idle_worker (GtkSourceContextEngine *ce)
 static gboolean
 first_update_callback (GtkSourceContextEngine *ce)
 {
-       g_return_val_if_fail (ce->priv->buffer != NULL, FALSE);
+       g_return_val_if_fail (ce->priv->buffer != NULL, G_SOURCE_REMOVE);
 
        /* analyze batch of text */
        update_syntax (ce, NULL, FIRST_UPDATE_TIME_SLICE);
@@ -2358,7 +2358,7 @@ first_update_callback (GtkSourceContextEngine *ce)
        if (!all_analyzed (ce))
                install_idle_worker (ce);
 
-       return FALSE;
+       return G_SOURCE_REMOVE;
 }
 
 /**


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