aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-12 15:15:43 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-12 15:15:43 +0800
commit9cc7e4cc95fb63ff48359b955329607795c6cf1f (patch)
tree4357525f9d5c1abf0e267cf1901c29e58785efea
parent1f26a903b0a67d87503c93cb9de670e9f84a7fda (diff)
downloadgsoc2013-evolution-9cc7e4cc95fb63ff48359b955329607795c6cf1f.tar
gsoc2013-evolution-9cc7e4cc95fb63ff48359b955329607795c6cf1f.tar.gz
gsoc2013-evolution-9cc7e4cc95fb63ff48359b955329607795c6cf1f.tar.bz2
gsoc2013-evolution-9cc7e4cc95fb63ff48359b955329607795c6cf1f.tar.lz
gsoc2013-evolution-9cc7e4cc95fb63ff48359b955329607795c6cf1f.tar.xz
gsoc2013-evolution-9cc7e4cc95fb63ff48359b955329607795c6cf1f.tar.zst
gsoc2013-evolution-9cc7e4cc95fb63ff48359b955329607795c6cf1f.zip
enable threading option type on the search bar.
2004-05-12 Not Zed <NotZed@Ximian.com> * mail-component.c (setup_search_context): enable threading option type on the search bar. svn path=/trunk/; revision=25878
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-component.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9b1a2bd764..075709b166 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2004-05-12 Not Zed <NotZed@Ximian.com>
+ * mail-component.c (setup_search_context): enable threading option
+ type on the search bar.
+
* mail-errors.xml.h: add for translators.
* Makefile.am (%.xml.h): fix for xml i18n stuff.
diff --git a/mail/mail-component.c b/mail/mail-component.c
index f4296fb9a4..9fa4eafb99 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -295,6 +295,8 @@ setup_search_context (MailComponent *component)
char *system = g_strdup (EVOLUTION_PRIVDATADIR "/searchtypes.xml");
priv->search_context = rule_context_new ();
+ /* This is a sort of hack, but saves us having to have a search context just to do it for us */
+ priv->search_context->flags |= RULE_CONTEXT_THREADING;
g_object_set_data_full (G_OBJECT (priv->search_context), "user", user, g_free);
g_object_set_data_full (G_OBJECT (priv->search_context), "system", system, g_free);