davemds pushed a commit to branch master.

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

commit ee412d891381b3a09d5c46107f42d4b938429955
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Fri Aug 11 05:52:30 2017 +0200

    pkit gadget: a better initial config
---
 src/modules/packagekit/e_mod_main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/modules/packagekit/e_mod_main.c 
b/src/modules/packagekit/e_mod_main.c
index 76c853717..7753f09cc 100644
--- a/src/modules/packagekit/e_mod_main.c
+++ b/src/modules/packagekit/e_mod_main.c
@@ -180,8 +180,11 @@ e_modapi_init(E_Module *m)
    E_CONFIG_VAL(D, T, show_description, INT);
    ctxt->config = e_config_domain_load(PACKAGEKIT_DOMAIN, ctxt->conf_edd);
    if (!ctxt->config)
-     ctxt->config = E_NEW(PackageKit_Config, 1);
-
+     {
+        ctxt->config = E_NEW(PackageKit_Config, 1);
+        ctxt->config->update_interval = 60 * 24;  // once a day
+        ctxt->config->show_description = 1;  // extended list
+     }
    ctxt->module = m;
    packagekit_mod = m;
    e_gadcon_provider_register(&_gc_class);

-- 


Reply via email to