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

otherwise things are getting really unreadable
devs/bu5hm4n/pointer_highlight
Marcel Hollerbach 6 years ago
parent ff09fd6dbc
commit bbf9c0bf16
  1. 5
      src/bin/clouseau_client.c

@ -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;
}

Loading…
Cancel
Save