[evolution/wip/webkit2] Do not let itip-formatter plugin disable
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Do not let itip-formatter plugin disable
- Date: Thu, 3 Mar 2016 13:44:18 +0000 (UTC)
commit 53336c010e2135637c908300b64b6383e9397573
Author: Milan Crha <mcrha redhat com>
Date: Wed Jan 20 18:52:00 2016 +0100
Do not let itip-formatter plugin disable
The itip-formatter is a system plugin, thus users cannot disable it
in the UI. It's also because it's an important plugin, the code depends
on it now. If it ever happens the user has it disabled from any
previous version, then ignore this flag and load it anyway.
.../evolution-module-itip-formatter.c | 23 --------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/modules/itip-formatter/evolution-module-itip-formatter.c
b/modules/itip-formatter/evolution-module-itip-formatter.c
index f5ee64b..85cd04b 100644
--- a/modules/itip-formatter/evolution-module-itip-formatter.c
+++ b/modules/itip-formatter/evolution-module-itip-formatter.c
@@ -29,32 +29,9 @@ const gchar * g_module_check_init (GModule *module);
G_MODULE_EXPORT void
e_module_load (GTypeModule *type_module)
{
- GSettings *settings;
- gchar **disabled_plugins;
- gint i = 0;
-
- settings = e_util_ref_settings ("org.gnome.evolution");
- disabled_plugins = g_settings_get_strv (settings, "disabled-eplugins");
-
- for (i = 0; disabled_plugins && disabled_plugins[i] != NULL; i++) {
-
- if (g_strcmp0 (
- disabled_plugins[i],
- "org.gnome.evolution.itip_formatter") == 0) {
-
- g_strfreev (disabled_plugins);
- g_object_unref (settings);
- return;
- }
-
- }
-
e_mail_part_itip_type_register (type_module);
e_mail_parser_itip_type_register (type_module);
e_mail_formatter_itip_type_register (type_module);
-
- g_strfreev (disabled_plugins);
- g_object_unref (settings);
}
G_MODULE_EXPORT void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]