[gnome-builder/search] workbench: cancel any previous search contexts
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/search] workbench: cancel any previous search contexts
- Date: Mon, 15 Dec 2014 08:49:04 +0000 (UTC)
commit f712c128ab861543a19ab2e5f4cb96a2ddc5812a
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 15 00:48:15 2014 -0800
workbench: cancel any previous search contexts
src/workbench/gb-workbench.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index 9e0c379..d647c1e 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -665,6 +665,9 @@ gb_workbench_begin_search (gpointer user_data)
priv->search_timeout = 0;
+ context = gb_search_display_get_context (priv->search_display);
+ if (context)
+ gb_search_context_cancel (context);
search_text = gtk_entry_get_text (GTK_ENTRY (priv->search_entry));
search_manager = gb_workbench_get_search_manager (workbench);
context = gb_search_manager_search (search_manager, search_text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]