aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-view.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index fd6215a5e8..8c659f58c0 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -1538,8 +1538,19 @@ get_master_list (void)
{
static GList *category_list = NULL;
- if (category_list == NULL)
- category_list = e_categories_get_list ();
+ if (category_list == NULL) {
+ GList *l, *p = e_categories_get_list ();
+
+ for (l = p; l; l = l->next) {
+ if (e_categories_is_searchable ((const char *) l->data))
+ category_list = g_list_prepend (category_list, l->data);
+ }
+
+ category_list = g_list_reverse (category_list);
+
+ g_list_free (p);
+ }
+
return category_list;
}