okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=35e9501637e7e14e6508c0c8eebe8a2055fce2d7

commit 35e9501637e7e14e6508c0c8eebe8a2055fce2d7
Author: Stephen 'Okra' Houston <[email protected]>
Date:   Wed Jan 25 16:24:25 2017 -0600

    Enlightenment: Whitelist and autoload the sysinfo gadgets.
---
 src/bin/e_config.c | 23 +++++++++++++++++++++++
 src/bin/e_config.h |  2 +-
 src/bin/e_module.c |  1 +
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_config.c b/src/bin/e_config.c
index 778d39c..b746010 100644
--- a/src/bin/e_config.c
+++ b/src/bin/e_config.c
@@ -1478,6 +1478,29 @@ e_config_load(void)
                     e_config->modules = eina_list_append(e_config->modules, 
module);
                  }
             }
+          CONFIG_VERSION_CHECK(23)
+            {
+               Eina_List *l;
+               E_Config_Module *em, *module;
+               Eina_Bool sysinfo_en = EINA_FALSE;
+
+               CONFIG_VERSION_UPDATE_INFO(23);
+
+               EINA_LIST_FOREACH(e_config->modules, l, em)
+                 {
+                    if (!em->enabled) continue;
+                    if (eina_streq(em->name, "sysinfo"))
+                      sysinfo_en = EINA_TRUE;
+                 }
+               if (!sysinfo_en)
+                 {
+                    module = E_NEW(E_Config_Module, 1);
+                    module->name = eina_stringshare_add("sysinfo");
+                    module->enabled = 1;
+                    module->delayed = 1;
+                    e_config->modules = eina_list_append(e_config->modules, 
module);
+                 }
+            }
      }
    if (!e_config->remember_internal_fm_windows)
      e_config->remember_internal_fm_windows = 
!!(e_config->remember_internal_windows & E_REMEMBER_INTERNAL_FM_WINS);
diff --git a/src/bin/e_config.h b/src/bin/e_config.h
index 2a15731..0a2dd81 100644
--- a/src/bin/e_config.h
+++ b/src/bin/e_config.h
@@ -46,7 +46,7 @@ typedef enum
 /* increment this whenever a new set of config values are added but the users
  * config doesn't need to be wiped - simply new values need to be put in
  */
-#define E_CONFIG_FILE_GENERATION 22
+#define E_CONFIG_FILE_GENERATION 23
 #define E_CONFIG_FILE_VERSION    ((E_CONFIG_FILE_EPOCH * 1000000) + 
E_CONFIG_FILE_GENERATION)
 
 #define E_CONFIG_BINDINGS_VERSION 0 // DO NOT INCREMENT UNLESS YOU WANT TO 
WIPE ALL BINDINGS!!!!!
diff --git a/src/bin/e_module.c b/src/bin/e_module.c
index 3cb794c..49d5104 100644
--- a/src/bin/e_module.c
+++ b/src/bin/e_module.c
@@ -1033,6 +1033,7 @@ _e_module_whitelist_check(void)
       "shot",
       "start",
       "syscon",
+      "sysinfo",
       "systray",
       "tasks",
       "teamwork",

-- 


Reply via email to