summaryrefslogtreecommitdiffstats
path: root/mail/evolution/files/patch-modules_addressbook_evolution-module-addressbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/evolution/files/patch-modules_addressbook_evolution-module-addressbook.c')
-rw-r--r--mail/evolution/files/patch-modules_addressbook_evolution-module-addressbook.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/mail/evolution/files/patch-modules_addressbook_evolution-module-addressbook.c b/mail/evolution/files/patch-modules_addressbook_evolution-module-addressbook.c
new file mode 100644
index 000000000..0df6bd970
--- /dev/null
+++ b/mail/evolution/files/patch-modules_addressbook_evolution-module-addressbook.c
@@ -0,0 +1,19 @@
+--- modules/addressbook/evolution-module-addressbook.c.orig 2010-04-11 12:47:18.000000000 -0400
++++ modules/addressbook/evolution-module-addressbook.c 2010-04-11 12:48:06.000000000 -0400
+@@ -47,3 +47,16 @@ G_MODULE_EXPORT void
+ e_module_unload (GTypeModule *type_module)
+ {
+ }
++
++G_MODULE_EXPORT const gchar *
++g_module_check_init (GModule *module)
++{
++ /* FIXME Until addressbook is split into a module library and a
++ * reusable shared library, prevent the module from
++ * being unloaded. Unloading the module resets all
++ * static variables, which screws up foo_get_type()
++ * functions among other things. */
++ g_module_make_resident (module);
++
++ return NULL;
++}