From d6e99dc40907f42bafd3fd2b8e7f1b06f1b8809a Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 11 Aug 2014 23:45:58 +0900 Subject: [PATCH] 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 7bee4aa82..ff10e7ade 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);