aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-02-18 05:02:06 +0800
committerChris Toshok <toshok@src.gnome.org>2003-02-18 05:02:06 +0800
commitc879655ace274596ae2dd3e78e348facd821e3b7 (patch)
tree1b4e46a135967ad79cf329feff3465defb58c3e2 /addressbook/gui/component
parent8be77ed0d8554ed4b71af4286a1203b817abb582 (diff)
downloadgsoc2013-evolution-c879655ace274596ae2dd3e78e348facd821e3b7.tar.gz
gsoc2013-evolution-c879655ace274596ae2dd3e78e348facd821e3b7.tar.zst
gsoc2013-evolution-c879655ace274596ae2dd3e78e348facd821e3b7.zip
if we can complete solely from our cached cards, call
2003-02-17 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): if we can complete solely from our cached cards, call e_completion_end_search from here when we're done. svn path=/trunk/; revision=19925
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-completion.c b/addressbook/gui/component/select-names/e-select-names-completion.c
index c679b51233..81f5d12353 100644
--- a/addressbook/gui/component/select-names/e-select-names-completion.c
+++ b/addressbook/gui/component/select-names/e-select-names-completion.c
@@ -924,6 +924,7 @@ e_select_names_completion_start_query (ESelectNamesCompletion *comp, const gchar
sexp = book_query_sexp (comp);
if (sexp && *sexp) {
GList *l;
+ gboolean async = FALSE;
if (out)
fprintf (out, "\n\n**** starting query: \"%s\"\n", comp->priv->query_text);
@@ -961,6 +962,7 @@ e_select_names_completion_start_query (ESelectNamesCompletion *comp, const gchar
book_query_process_card_list (comp, book_data->cached_cards);
}
else {
+ async = TRUE;
e_select_names_completion_clear_cache (book_data);
book_data->cached_query_text = g_strdup (query_text);
@@ -975,6 +977,12 @@ e_select_names_completion_start_query (ESelectNamesCompletion *comp, const gchar
fprintf (out, "]\n");
}
+ /* if we looped through all the books
+ and were able to complete based
+ solely on our cached cards, signal
+ that the search is over. */
+ if (!async)
+ e_completion_end_search (E_COMPLETION (comp));
} else {
g_free (comp->priv->query_text);
comp->priv->query_text = NULL;