efreet: Revert changed flag

Only send event when cache is actually updated.

SVN revision: 62548
This commit is contained in:
Sebastian Dransfeld 2011-08-18 07:34:02 +00:00
parent 4aed42e8e4
commit 0a0c4d5209
7 changed files with 9 additions and 33 deletions

View File

@ -5657,14 +5657,11 @@ _e_border_cb_sync_alarm(void *data __UNUSED__,
static Eina_Bool
_e_border_cb_efreet_cache_update(void *data __UNUSED__,
int ev_type __UNUSED__,
void *event)
void *ev __UNUSED__)
{
Efreet_Event_Cache_Update *ev = event;
Eina_List *l;
E_Border *bd;
if (!ev->changed) return ECORE_CALLBACK_PASS_ON;
/* mark all borders for desktop/icon updates */
EINA_LIST_FOREACH(borders, l, bd)
{

View File

@ -399,16 +399,12 @@ _e_configure_efreet_desktop_update(void)
}
static Eina_Bool
_e_configure_cb_efreet_desktop_cache_update(void *data __UNUSED__, int type __UNUSED__, void *event)
_e_configure_cb_efreet_desktop_cache_update(void *data __UNUSED__, int type __UNUSED__, void *event __UNUSED__)
{
Efreet_Event_Cache_Update *ev = event;
if (!ev->changed) return ECORE_CALLBACK_PASS_ON;
_e_configure_efreet_desktop_cleanup();
if (update_job) ecore_job_del(update_job);
update_job = ecore_job_add(_configure_job, NULL);
return ECORE_CALLBACK_PASS_ON;;
return 1;
}
static void

View File

@ -278,14 +278,11 @@ _e_order_save(E_Order *eo)
}
static Eina_Bool
_e_order_cb_efreet_cache_update(void *data __UNUSED__, int ev_type __UNUSED__, void *event)
_e_order_cb_efreet_cache_update(void *data __UNUSED__, int ev_type __UNUSED__, void *ev __UNUSED__)
{
Efreet_Event_Cache_Update *ev = event;
Eina_List *l;
E_Order *eo;
if (!ev->changed) return ECORE_CALLBACK_PASS_ON;
/* reread all .order files */
EINA_LIST_FOREACH(orders, l, eo)
{

View File

@ -204,12 +204,8 @@ _free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
}
static Eina_Bool
_desks_update(void *data, int ev_type __UNUSED__, void *event)
_desks_update(void *data, int ev_type __UNUSED__, void *ev __UNUSED__)
{
Efreet_Event_Cache_Update *ev = event;
if (!ev->changed) return ECORE_CALLBACK_PASS_ON;
E_Config_Dialog_Data *cfdata = data;
Efreet_Desktop *desk;
EINA_LIST_FREE(cfdata->desks, desk)

View File

@ -1058,17 +1058,14 @@ _run_executable(Evry_Action *act)
/***************************************************************************/
static Eina_Bool
_desktop_cache_update(void *data __UNUSED__, int type __UNUSED__, void *event)
_desktop_cache_update(void *data __UNUSED__, int type __UNUSED__, void *event __UNUSED__)
{
Efreet_Event_Cache_Update *ev = event;
Efreet_Desktop *d;
if (!ev->changed) return ECORE_CALLBACK_PASS_ON;
EINA_LIST_FREE(apps_cache, d)
efreet_desktop_unref(d);
return ECORE_CALLBACK_PASS_ON;
return EINA_TRUE;
}
static int

View File

@ -1314,14 +1314,11 @@ e_modapi_save(E_Module *m __UNUSED__)
}
static Eina_Bool
_ibar_cb_config_icons(__UNUSED__ void *data, __UNUSED__ int ev_type, void *event)
_ibar_cb_config_icons(__UNUSED__ void *data, __UNUSED__ int ev_type, __UNUSED__ void *ev)
{
Efreet_Event_Cache_Update *ev = event;
const Eina_List *l;
Instance *inst;
if (!ev->changed) return ECORE_CALLBACK_PASS_ON;
EINA_LIST_FOREACH(ibar_config->instances, l, inst)
{
const Eina_List *l2;

View File

@ -561,12 +561,8 @@ _il_home_cb_selected(void *data, Evas_Object *obj __UNUSED__, void *event __UNUS
}
static Eina_Bool
_il_home_desktop_cache_update(void *data __UNUSED__, int type __UNUSED__, void *event)
_il_home_desktop_cache_update(void *data __UNUSED__, int type __UNUSED__, void *event __UNUSED__)
{
Efreet_Event_Cache_Update *ev = event;
if (!ev->changed) return ECORE_CALLBACK_PASS_ON;
if (defer) ecore_timer_del(defer);
defer = ecore_timer_add(0.5, _il_home_update_deferred, NULL);
return ECORE_CALLBACK_PASS_ON;