forked from enlightenment/efl
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:
parent
85faa571ef
commit
f3fa723f2d
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue