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:
c408a7d
)
elm genlist: Use EINA_SAFETY_ON_TRUE_RETURN for nicely warn user.
author
Daniel Juyung Seo
<seojuyung2@gmail.com>
Wed, 30 May 2012 04:57:29 +0000
(
04:57
+0000)
committer
Daniel Juyung Seo
<seojuyung2@gmail.com>
Wed, 30 May 2012 04:57:29 +0000
(
04:57
+0000)
SVN revision: 71528
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index
09c5726
..
6261a83
100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-5459,7
+5459,8
@@
elm_genlist_block_count_set(Evas_Object *obj,
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (count < 1) return;
+ EINA_SAFETY_ON_TRUE_RETURN(count < 1);
+
wd->max_items_per_block = count;
wd->item_cache_max = wd->max_items_per_block * 2;
_item_cache_clean(wd);