projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ff9c5e
)
elm_diskpicker: save (list_len - 3) strlen calls
author
Bruno Dilly
<bdilly@profusion.mobi>
Tue, 19 Oct 2010 10:48:11 +0000
(10:48 +0000)
committer
Bruno Dilly
<bdilly@profusion.mobi>
Tue, 19 Oct 2010 10:48:11 +0000
(10:48 +0000)
demarchi-- for reducing performance just to solve a comparison between
signed and unsigned.
SVN revision: 53591
src/lib/elm_diskpicker.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_diskpicker.c
b/src/lib/elm_diskpicker.c
index e7653609391a19907e05a2c8ba6142599d63e032..77132b9837b07067bc9b8fda210163119063a993 100644
(file)
--- a/
src/lib/elm_diskpicker.c
+++ b/
src/lib/elm_diskpicker.c
@@
-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");