import eplugin activation

Chris Halls <[email protected]> Wed, 29 Nov 2006 13:21:13 +0000
Newsgroups gmane.comp.gnome.evolution.patches
Organization Credativ Ltd
Message-ID <[email protected]>
Hi everyone

Could I get some feedback on this patch? I'm writing an eimport plugin to 
import Outlook folders using libpst, but Evolution isn't loading these 
plugins because EImport is not registered.

This is bugzilla #372528

Thanks
Chris

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
eplugin-import-activate2.diff (text/x-diff, 1.2 KB)
Index: shell/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/shell/ChangeLog,v
retrieving revision 1.1600
diff -u -3 -p -r1.1600 ChangeLog
--- shell/ChangeLog	16 Oct 2006 18:46:41 -0000	1.1600
+++ shell/ChangeLog	29 Nov 2006 12:33:27 -0000
@@ -1,3 +1,8 @@
+2006-11-29  Chris Halls <[email protected]>
+
+	* main.c: Register import eplugin type. 
+	Fixes bug #372528.
+
 2006-10-17  Harish Krishnaswamy  <[email protected]>
 
 	* main.c: (show_development_warning):  Update last
Index: shell/main.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/main.c,v
retrieving revision 1.188
diff -u -3 -p -r1.188 main.c
--- shell/main.c	16 Oct 2006 18:46:54 -0000	1.188
+++ shell/main.c	29 Nov 2006 12:33:27 -0000
@@ -75,6 +75,7 @@
 
 #include <misc/e-cursors.h>
 #include "e-util/e-error.h"
+#include "e-util/e-import.h"
 
 #include <fcntl.h>
 #include <signal.h>
@@ -598,6 +599,7 @@ main (int argc, char **argv)
 		e_plugin_hook_register_type(e_profile_event_hook_get_type());
 #endif
 		e_plugin_hook_register_type(e_plugin_type_hook_get_type());
+		e_plugin_hook_register_type(e_import_hook_get_type());
 		e_plugin_load_plugins();
 	}