aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-06-22 10:16:39 +0800
committerChris Toshok <toshok@src.gnome.org>2004-06-22 10:16:39 +0800
commit725155fab5a6c9e15fb23cbb75403fec64bc2a14 (patch)
tree47efca7bf5560b5827134a9bb1486b5edd9c224c
parent0ba1baf5d891bf70a16591d819f3c86fe0309b6a (diff)
downloadgsoc2013-evolution-725155fab5a6c9e15fb23cbb75403fec64bc2a14.tar.gz
gsoc2013-evolution-725155fab5a6c9e15fb23cbb75403fec64bc2a14.tar.zst
gsoc2013-evolution-725155fab5a6c9e15fb23cbb75403fec64bc2a14.zip
make completion respect your download limit for a given source. speeds up
2004-06-21 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): make completion respect your download limit for a given source. speeds up completion substantially (or rather, speeds up switching of queries) when the ldap server has tons of entries. svn path=/trunk/; revision=26449
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c13
2 files changed, 20 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 5152aa4603..50a22aa6a4 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+2004-06-21 Chris Toshok <toshok@ximian.com>
+
+ * gui/component/select-names/e-select-names-completion.c
+ (e_select_names_completion_start_query): make completion respect
+ your download limit for a given source. speeds up completion
+ substantially (or rather, speeds up switching of queries) when the
+ ldap server has tons of entries.
+
2004-06-21 Federico Mena Quintero <federico@ximian.com>
* gui/contact-editor/contact-editor.glade: Make the scrolled
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 2bf0341e40..108de1be46 100644
--- a/addressbook/gui/component/select-names/e-select-names-completion.c
+++ b/addressbook/gui/component/select-names/e-select-names-completion.c
@@ -1006,12 +1006,23 @@ e_select_names_completion_start_query (ESelectNamesCompletion *comp, const gchar
book_query_process_card_list (comp, book_data->cached_cards);
}
else {
+ ESource *source;
+ int limit;
+ const char *str;
+
e_select_names_completion_clear_cache (book_data);
book_data->cached_query_text = g_strdup (query_text);
+ source = e_book_get_source (book_data->book);
+ str = e_source_get_property (source, "limit");
+ if (str)
+ limit = atoi (str);
+ else
+ limit = -1;
+
book_data->book_view_tag = e_book_async_get_book_view (book_data->book,
query,
- NULL, -1,
+ NULL, limit,
e_select_names_completion_got_book_view_cb, book_data);
comp->priv->pending_completion_seq++;
}