forked from enlightenment/enlightenment
refresh gadman available gadgets on both disable and enable of module
SVN revision: 73205
This commit is contained in:
parent
f91285f604
commit
298dd0941b
|
@ -1416,7 +1416,6 @@ _e_gadman_handlers_add(void)
|
||||||
ecore_event_handler_add(E_EVENT_ZONE_DEL, _e_gadman_cb_zone_del, NULL));
|
ecore_event_handler_add(E_EVENT_ZONE_DEL, _e_gadman_cb_zone_del, NULL));
|
||||||
_gadman_hdls = eina_list_append(_gadman_hdls,
|
_gadman_hdls = eina_list_append(_gadman_hdls,
|
||||||
ecore_event_handler_add(E_EVENT_MODULE_UPDATE, (Ecore_Event_Handler_Cb)_gadman_module_cb, NULL));
|
ecore_event_handler_add(E_EVENT_MODULE_UPDATE, (Ecore_Event_Handler_Cb)_gadman_module_cb, NULL));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1432,9 +1431,7 @@ _e_gadman_handler_del(void)
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_gadman_module_cb(void *d __UNUSED__, int type __UNUSED__, E_Event_Module_Update *ev)
|
_gadman_module_cb(void *d __UNUSED__, int type __UNUSED__, E_Event_Module_Update *ev)
|
||||||
{
|
{
|
||||||
if (ev->enabled)
|
if (!ev->enabled)
|
||||||
e_config_gadman_list_refresh();
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
E_Gadcon_Client *gcc;
|
E_Gadcon_Client *gcc;
|
||||||
|
@ -1446,6 +1443,7 @@ _gadman_module_cb(void *d __UNUSED__, int type __UNUSED__, E_Event_Module_Update
|
||||||
gadman_gadget_del(gcc);
|
gadman_gadget_del(gcc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
e_config_gadman_list_refresh();
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue