[gtksourceview/wip/search: 22/36] search: small code simplification in idle_scan_cb()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/search: 22/36] search: small code simplification in idle_scan_cb()
- Date: Sat, 6 Jul 2013 15:58:34 +0000 (UTC)
commit 0c8e818cf6d44308374cad460e3eeda1ffe22baa
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Jul 2 14:57:44 2013 +0200
search: small code simplification in idle_scan_cb()
gtksourceview/gtksourcesearch.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gtksourceview/gtksourcesearch.c b/gtksourceview/gtksourcesearch.c
index a49b827..7160f97 100644
--- a/gtksourceview/gtksourcesearch.c
+++ b/gtksourceview/gtksourcesearch.c
@@ -1139,17 +1139,8 @@ idle_scan_cb (GtkSourceSearch *search)
if (search->priv->task_region != NULL)
{
- /* Finish this idle, and install a new one, because
- * scan_task_region() can also indirectly call
- * install_idle_scan(). When install_idle_scan() is called
- * indirectly, we must be sure that the idle function will be
- * run.
- */
- search->priv->idle_scan_id = 0;
- install_idle_scan (search);
-
scan_task_region (search);
- return FALSE;
+ return TRUE;
}
scan_region_forward (search, search->priv->scan_region);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]