clouseau_client: do not compact items which are bigger than 10 items

otherwise things are getting really unreadable
This commit is contained in:
Marcel Hollerbach 2016-11-11 14:58:37 +01:00
parent ff09fd6dbc
commit bbf9c0bf16
1 changed files with 5 additions and 0 deletions

View File

@ -2257,10 +2257,15 @@ _obj_info_can_list_be_compacted(Efl_Dbg_Info *root_eo)
eina_value_pget(&(root_eo->value), &list);
// We check that there is no list into this list. If such list exists,
// we can't compact the list.
int number = 0;
EINA_LIST_FOREACH(list.list, l, eo)
{
number ++;
if (eina_value_type_get(&(eo->value)) == EINA_VALUE_TYPE_LIST)
return EINA_FALSE;
//this is very unreadable
if (number > 10)
return EINA_FALSE;
}
return EINA_TRUE;
}