diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2008-01-28 13:31:52 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2008-01-28 13:31:52 +0800 |
commit | b57e4b7290682269e804aa2b8d91d1daa5f6577a (patch) | |
tree | 654cc42e869041a92a0546ba2153c494f30434e4 | |
parent | 8b2d851699d93e90b9bf6462321e8f832a1a9128 (diff) | |
download | gsoc2013-evolution-b57e4b7290682269e804aa2b8d91d1daa5f6577a.tar gsoc2013-evolution-b57e4b7290682269e804aa2b8d91d1daa5f6577a.tar.gz gsoc2013-evolution-b57e4b7290682269e804aa2b8d91d1daa5f6577a.tar.bz2 gsoc2013-evolution-b57e4b7290682269e804aa2b8d91d1daa5f6577a.tar.lz gsoc2013-evolution-b57e4b7290682269e804aa2b8d91d1daa5f6577a.tar.xz gsoc2013-evolution-b57e4b7290682269e804aa2b8d91d1daa5f6577a.tar.zst gsoc2013-evolution-b57e4b7290682269e804aa2b8d91d1daa5f6577a.zip |
Patch from Milan Crha <mcrha@redhat.com> ** Fix for bug #512020 (Use only searchable categories, like in calendar)
svn path=/trunk/; revision=34909
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-view.c | 15 |
2 files changed, 20 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index e6913d5f30..c4fc2d714c 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -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 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; } |