Patch from Milan Crha <mcrha@redhat.com> ** Fix for bug #512020 (Use only searchable categories, like in calendar)

svn path=/trunk/; revision=34909
This commit is contained in:
Suman Manjunath
2008-01-28 05:31:52 +00:00
parent 8b2d851699
commit b57e4b7290
2 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-01-25 Milan Crha <mcrha@redhat.com>
** Fix for bug #512020
* gui/widgets/e-addressbook-view.c: (get_master_list):
Use only searchable categories, like in calendar.
2008-01-23 Djihed Afifi <djihed@gmail.com>
** Fix for bug #391408

View File

@ -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;
}