forked from enlightenment/enlightenment
E: Update eina_array_count function to not use deprecated one.
SVN revision: 67014
This commit is contained in:
parent
d98e89c9af
commit
79e0406a40
|
@ -837,7 +837,7 @@ _e_container_border_list_jump(E_Border_List *list, int dir)
|
||||||
E_Border *bd;
|
E_Border *bd;
|
||||||
|
|
||||||
if ((list->pos < 0) ||
|
if ((list->pos < 0) ||
|
||||||
(list->pos >= (int)eina_array_count_get(&(list->client_array))))
|
(list->pos >= (int)eina_array_count(&(list->client_array))))
|
||||||
return NULL;
|
return NULL;
|
||||||
bd = eina_array_data_get(&(list->client_array), list->pos);
|
bd = eina_array_data_get(&(list->client_array), list->pos);
|
||||||
list->pos += dir;
|
list->pos += dir;
|
||||||
|
@ -860,7 +860,7 @@ e_container_border_list_last(E_Container *con)
|
||||||
E_Border_List *list = NULL;
|
E_Border_List *list = NULL;
|
||||||
|
|
||||||
list = _e_container_border_list_new(con);
|
list = _e_container_border_list_new(con);
|
||||||
list->pos = eina_array_count_get(&(list->client_array)) - 1;
|
list->pos = eina_array_count(&(list->client_array)) - 1;
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue