raster pushed a commit to branch master.

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

commit d6e99dc40907f42bafd3fd2b8e7f1b06f1b8809a
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Aug 11 23:45:58 2014 +0900

    connman gadget - dont display config button unless econnman is installed
    
    this has been just way too confusing. i her user problems all the time
    and they just cant see differences between connman module+gadget and
    python econnman app.
    
    we do need to have these settings in e in the end anyway... but until
    then - disable
---
 src/modules/connman/e_mod_main.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/modules/connman/e_mod_main.c b/src/modules/connman/e_mod_main.c
index 7bee4aa..ff10e7a 100644
--- a/src/modules/connman/e_mod_main.c
+++ b/src/modules/connman/e_mod_main.c
@@ -287,9 +287,12 @@ _econnman_popup_new(E_Connman_Instance *inst)
 
    _econnman_popup_update(ctxt->cm, inst);
 
-   bt = e_widget_button_add(evas, _("Configure"), NULL,
-                            _econnman_configure_cb, inst, NULL);
-   e_widget_list_object_append(list, bt, 1, 0, 0.5);
+   if (efreet_util_desktop_file_id_find("econnman.desktop"))
+     {
+        bt = e_widget_button_add(evas, _("Configure"), NULL,
+                                 _econnman_configure_cb, inst, NULL);
+        e_widget_list_object_append(list, bt, 1, 0, 0.5);
+     }
 
    /* 30,40 % -- min vga, max uvga */
    _e_connman_widget_size_set(inst, list, 10, 30, 192, 192, 384, 384);

-- 


Reply via email to