evolution r34909 - in trunk/addressbook: . gui/widgets
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r34909 - in trunk/addressbook: . gui/widgets
- Date: Mon, 28 Jan 2008 05:31:52 +0000 (GMT)
Author: msuman
Date: Mon Jan 28 05:31:52 2008
New Revision: 34909
URL: http://svn.gnome.org/viewvc/evolution?rev=34909&view=rev
Log:
Patch from Milan Crha <mcrha redhat com> ** Fix for bug #512020 (Use only searchable categories, like in calendar)
Modified:
trunk/addressbook/ChangeLog
trunk/addressbook/gui/widgets/e-addressbook-view.c
Modified: trunk/addressbook/gui/widgets/e-addressbook-view.c
==============================================================================
--- trunk/addressbook/gui/widgets/e-addressbook-view.c (original)
+++ trunk/addressbook/gui/widgets/e-addressbook-view.c Mon Jan 28 05:31:52 2008
@@ -1538,8 +1538,19 @@
{
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]