[evolution-patches] camel groupwise startup warning




This just stops a warning at startup, you need to pass an exception to some functions otherwise they might not operate properly.

--
Michael Zucchi <notzed ximian com>
"born to die, live to work, it's all downhill from here"
Novell's Evolution and Free Software Developer
Index: camel/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
retrieving revision 1.2244
diff -u -3 -r1.2244 ChangeLog
--- camel/ChangeLog	13 Aug 2004 18:13:02 -0000	1.2244
+++ camel/ChangeLog	16 Aug 2004 04:03:20 -0000
@@ -1,3 +1,9 @@
+2004-08-16  Not Zed  <NotZed Ximian com>
+
+	* providers/groupwise/camel-groupwise-provider.c
+	(camel_provider_module_init): pass an exception handle to
+	camel_provider_get.
+
 2004-08-13  Jeffrey Stedfast  <fejj novell com>
 
 	* providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
Index: camel/providers/groupwise/camel-groupwise-provider.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/providers/groupwise/camel-groupwise-provider.c,v
retrieving revision 1.14
diff -u -3 -r1.14 camel-groupwise-provider.c
--- camel/providers/groupwise/camel-groupwise-provider.c	13 Aug 2004 16:11:15 -0000	1.14
+++ camel/providers/groupwise/camel-groupwise-provider.c	16 Aug 2004 04:03:20 -0000
@@ -131,8 +131,9 @@
 camel_provider_module_init(void)
 {
 	CamelProvider *imap_provider;
+	CamelException ex = CAMEL_EXCEPTION_INITIALISER;
 
-	imap_provider =  camel_provider_get("imap://", NULL);
+	imap_provider =  camel_provider_get("imap://", &ex);
 	groupwise_provider.url_hash = groupwise_url_hash;
 	groupwise_provider.url_equal = groupwise_url_equal;
 	groupwise_provider.auto_detect = groupwise_auto_detect_cb;
@@ -140,6 +141,8 @@
 	if (imap_provider != NULL) {
 		groupwise_provider.object_types[CAMEL_PROVIDER_STORE] =  imap_provider->object_types [CAMEL_PROVIDER_STORE];
 		camel_provider_register(&groupwise_provider);
+	} else {
+		camel_exception_clear(&ex);
 	}
 
 	if (!config_listener) {


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