[elm_genlist.c test_genlist.c] Applied SVN Revision 54639.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 18 Nov 2010 00:38:21 +0000 (09:38 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 18 Nov 2010 00:38:21 +0000 (09:38 +0900)
commited93df7a503de8fdcb07512802b00ee514c703ee
tree7a652dd5579c77b5c9008a638fb3bf143c738326
parent915624efd44ae44b921e0b7ef008cf92f0ab4e15
[elm_genlist.c test_genlist.c] Applied SVN Revision 54639.
Changeset 54639
Timestamp: 11/17/10 09:15:28 (7 hours ago)
Author: bdilly
Message: Add elm_genlist_item_item_class_update

1. elm_genlist_item_item_class_update() API
It is required to change an item's item class on run-time.
Applications want to change a certain item's style and callbacks
dynamically.
This looks ok because changing one item's style does not affect performance,
And this API uses elm_genlist_item_update internally.
API name follows elementary naming conventions.
I've also added test code to elementary_test, Genlist 7.

2. constant to macro.
I replaced 2 constants for max_item_per_block and longpress_timeout to
macros.
This could be used in other places of the code.

3. duplicated assignment.
In elm_genlist_item_append, it->before = 0 is written in if and else.
I put this statement out of if().

4. fix doxygen typo
I fixed elm_genlist_compress_mode_set doxygen.

By: Daniel Juyung Seo <juyung.seo@...>
src/bin/test.c
src/bin/test_genlist.c
src/lib/Elementary.h.in
src/lib/elm_genlist.c