From: Stefan Schmidt Date: Wed, 22 Apr 2015 11:54:51 +0000 (+0200) Subject: module/geolocation: Stop setting gadget icon from start and stop callbacks X-Git-Tag: upstream/0.20.0~942 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c79d0b1f8c42fed8cfc5eb0b28b9792251707517;p=platform%2Fupstream%2Fenlightenment.git module/geolocation: Stop setting gadget icon from start and stop callbacks We keep track of this now by monitoring the InUse property which works also if other clients use the service. --- diff --git a/src/modules/geolocation/e_mod_main.c b/src/modules/geolocation/e_mod_main.c index 8b8f22d..641ab14 100644 --- a/src/modules/geolocation/e_mod_main.c +++ b/src/modules/geolocation/e_mod_main.c @@ -147,25 +147,17 @@ popup_new(Instance *inst) } void -cb_client_start(Eldbus_Proxy *proxy EINA_UNUSED, void *data, Eldbus_Pending *pending EINA_UNUSED, - Eldbus_Error_Info *error EINA_UNUSED) +cb_client_start(Eldbus_Proxy *proxy EINA_UNUSED, void *data EINA_UNUSED, + Eldbus_Pending *pending EINA_UNUSED, Eldbus_Error_Info *error EINA_UNUSED) { - Instance *inst = data; - DBG("Client proxy start callback received"); - - edje_object_signal_emit(inst->icon, "e,state,location_on", "e"); } void -cb_client_stop(Eldbus_Proxy *proxy EINA_UNUSED, void *data, Eldbus_Pending *pending EINA_UNUSED, - Eldbus_Error_Info *error EINA_UNUSED) +cb_client_stop(Eldbus_Proxy *proxy EINA_UNUSED, void *data EINA_UNUSED, + Eldbus_Pending *pending EINA_UNUSED, Eldbus_Error_Info *error EINA_UNUSED) { - Instance *inst = data; - DBG("Client proxy stop callback received"); - - edje_object_signal_emit(inst->icon, "e,state,location_off", "e"); } static void