clouseau_client: do not compact items which are bigger than 10 items
otherwise things are getting really unreadable
This commit is contained in:
parent
ff09fd6dbc
commit
bbf9c0bf16
|
@ -2257,10 +2257,15 @@ _obj_info_can_list_be_compacted(Efl_Dbg_Info *root_eo)
|
||||||
eina_value_pget(&(root_eo->value), &list);
|
eina_value_pget(&(root_eo->value), &list);
|
||||||
// We check that there is no list into this list. If such list exists,
|
// We check that there is no list into this list. If such list exists,
|
||||||
// we can't compact the list.
|
// we can't compact the list.
|
||||||
|
int number = 0;
|
||||||
EINA_LIST_FOREACH(list.list, l, eo)
|
EINA_LIST_FOREACH(list.list, l, eo)
|
||||||
{
|
{
|
||||||
|
number ++;
|
||||||
if (eina_value_type_get(&(eo->value)) == EINA_VALUE_TYPE_LIST)
|
if (eina_value_type_get(&(eo->value)) == EINA_VALUE_TYPE_LIST)
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
//this is very unreadable
|
||||||
|
if (number > 10)
|
||||||
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue