aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-11 04:03:26 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-11 04:03:26 +0800
commita225c88e27be5282f98fd7a1a6f310c70ef731bf (patch)
tree34ab3076968c68204b52c4c6a5a61d5941959c0c
parentcdbaf741c1cb50b41c03c17f9948f6f29b9be021 (diff)
downloadgsoc2013-evolution-a225c88e27be5282f98fd7a1a6f310c70ef731bf.tar.gz
gsoc2013-evolution-a225c88e27be5282f98fd7a1a6f310c70ef731bf.tar.zst
gsoc2013-evolution-a225c88e27be5282f98fd7a1a6f310c70ef731bf.zip
Make the mail module resident until we can split it up.
-rw-r--r--mail/evolution-module-mail.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/evolution-module-mail.c b/mail/evolution-module-mail.c
index 936ed9a0b5..83db1d9087 100644
--- a/mail/evolution-module-mail.c
+++ b/mail/evolution-module-mail.c
@@ -28,6 +28,19 @@
void e_module_load (GTypeModule *type_module);
void e_module_unload (GTypeModule *type_module);
+G_MODULE_EXPORT const gchar *
+g_module_check_init (GModule *module)
+{
+ /* FIXME Until mail 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;
+}
+
G_MODULE_EXPORT void
e_module_load (GTypeModule *type_module)
{