discomfitor pushed a commit to branch master.

commit e0ba8289326ff0399124cb00832112f3962076b5
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue May 21 14:36:13 2013 +0100

    silently remove comp module from module config on attempted load
---
 src/bin/e_module.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/bin/e_module.c b/src/bin/e_module.c
index d7a00cc..f34a7af 100644
--- a/src/bin/e_module.c
+++ b/src/bin/e_module.c
@@ -223,6 +223,14 @@ e_module_all_load(void)
    EINA_LIST_FOREACH_SAFE(e_config->modules, l, ll, em)
      {
         if (!em) continue;
+
+        if (!e_util_strcmp(em->name, "comp"))
+          {
+             e_config->modules = eina_list_remove_list(e_config->modules, l);
+             eina_stringshare_del(em->name);
+             free(em);
+             continue;
+          }
         if ((em->delayed) && (em->enabled) & (!e_config->no_module_delay))
           {
              if (!_e_module_idler)
@@ -276,14 +284,6 @@ e_module_new(const char *name)
    int in_list = 0;
 
    if (!name) return NULL;
-   if (!e_util_strcasecmp(name, "comp"))
-     {
-        e_util_dialog_show(_("Module Error"),
-                           _("The composite module cannot be loaded;"
-                             "Enlightenment is already composited."));
-        ERR("USER TRIED TO LOAD EXTERNAL COMP MODULE! MY TEARS FLOW LIKE 
VICTORIA FALLS!");
-        return NULL;
-     }
    m = E_OBJECT_ALLOC(E_Module, E_MODULE_TYPE, _e_module_free);
    if (name[0] != '/')
      {

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to