Re: [Evolution-hackers] problem in "Categories" button in e-contact-editor



Chris Toshok wrote:

try reverting all your changes, and apply the following:

RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook.c,v
retrieving revision 1.211
diff -u -r1.211 addressbook.c
--- addressbook.c       14 Jun 2003 04:34:07 -0000      1.211
+++ addressbook.c       23 Apr 2004 07:48:23 -0000
@@ -858,7 +858,7 @@
                               } else {
                                       master_list = get_master_list ();
                                       category_name = e_categories_master_list_nth (master_list, subid);
-                                       search_query = g_strdup_printf ("(is \"category\" \"%s\")", category_name);
+                                       search_query = g_strdup_printf ("(is \"categories\" \"%s\")", category_name);
                               }
                               break;

thanks a lot, Chris.

I'll try this monday, and keep you posted!!

Stan.

Chris

On Fri, 2004-04-23 at 08:29 +0200, Stan Pinte wrote:
hello,

I tried to solve the following bug in evolution-1.4.6: queries by
category in LDAP-backed addressbooks do not work.

the following patch solves the problem:

--- evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c.orig	2004-04-22 10:45:59.000000000 +0200
+++ evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c	2004-04-22 10:46:23.000000000 +0200
@@ -268,7 +268,7 @@
E_STRING_PROP (E_CARD_SIMPLE_FIELD_MAILER, "mailer", "mailer"),
	E_STRING_PROP (E_CARD_SIMPLE_FIELD_FILE_AS,     "file_as", "fileAs"),
-	E_COMPLEX_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES,  "categories", "category", category_populate, category_ber, category_compare),
+	E_COMPLEX_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES,  "category", "category", category_populate, category_ber, category_compare),

	STRING_PROP (E_CARD_SIMPLE_FIELD_CALURI,      "caluri", "calCalURI"),
	STRING_PROP (E_CARD_SIMPLE_FIELD_FBURL,       "fburl",
	"calFBURL"),

, but creates another problem:

the "Categories" button in the contact edition folder is now
disabled. Yet, the categories are still listed in the text field.

I tried to solve it using that patch:

--- evolution-1.4.6/addressbook/gui/contact-editor/e-contact-editor.c.orig	2004-04-22 12:46:12.000000000 +0200
+++ evolution-1.4.6/addressbook/gui/contact-editor/e-contact-editor.c	2004-04-22 12:45:34.000000000 +0200
@@ -2128,7 +2128,7 @@
	{ "entry-nickname", "nickname" },
	{ "entry-spouse", "spouse" },
	{ "text-comments", "note" },
-	{ "entry-categories", "categories" },
+	{ "entry-categories", "category" },
	{ "entry-caluri", "caluri" },
	{ "entry-fburl", "fburl" },
};

but, it makes things worse: the button is still disabled, and the
categories do not show up anymore in the text field.

I am determined to solve this problem, but I am asking around for any
hints...

thanks a lot,

Stan. _______________________________________________
evolution-hackers maillist  -  evolution-hackers lists ximian com
http://lists.ximian.com/mailman/listinfo/evolution-hackers


!DSPAM:4088b84b134681556419849!



Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]