[evolution/gnome-3-18] Do not let itip-formatter plugin disable



commit 4600c94014210a46d4030c01e034f4d0cd44dc46
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]