elm_diskpicker: save (list_len - 3) strlen calls

demarchi-- for reducing performance just to solve a comparison between
signed and unsigned.



SVN revision: 53591
This commit is contained in:
Bruno Dilly 2010-10-19 10:48:11 +00:00
parent 85faa571ef
commit f3fa723f2d
1 changed files with 3 additions and 1 deletions

View File

@ -388,13 +388,15 @@ _check_string(void *data)
EINA_LIST_FOREACH(list, l, it)
{
int len = strlen(it->label);
Evas_Coord x, w;
int len;
evas_object_geometry_get(it->base.view, &x, NULL, &w, NULL);
/* item not visible */
if (x + w <= ox || x >= ox + ow)
continue;
len = strlen(it->label);
if (x <= ox + 5)
edje_object_signal_emit(it->base.view, "elm,state,left_side",
"elm");