okra pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1e458450cd2ae639bda523a08c931ba44489fdfe

commit 1e458450cd2ae639bda523a08c931ba44489fdfe
Author: Stephen okra Houston <smhousto...@gmail.com>
Date:   Fri Aug 26 10:37:26 2016 -0500

    Elementary: Genlist Tree Test - Add an item with the indent style to match 
tree style.
---
 src/bin/elementary/test_genlist.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/bin/elementary/test_genlist.c 
b/src/bin/elementary/test_genlist.c
index afceb46..91a6205 100644
--- a/src/bin/elementary/test_genlist.c
+++ b/src/bin/elementary/test_genlist.c
@@ -1639,6 +1639,13 @@ test_genlist6(void *data EINA_UNUSED, Evas_Object *obj 
EINA_UNUSED, void *event_
    api->itc2->func.state_get = gl4_state_get;
    api->itc2->func.del = gl4_del;
 
+   api->itc = elm_genlist_item_class_new();
+   api->itc->item_style = "indent";
+   api->itc->func.text_get = gl4_text_get;
+   api->itc->func.content_get = gl4_content_get;
+   api->itc->func.state_get = gl4_state_get;
+   api->itc->func.del = gl4_del;
+
    elm_genlist_item_append(gl, api->itc2,
                            (void *)1/* item data */, NULL/* parent */,
                            ELM_GENLIST_ITEM_TREE, gl4_sel/* func */,
@@ -1647,13 +1654,18 @@ test_genlist6(void *data EINA_UNUSED, Evas_Object *obj 
EINA_UNUSED, void *event_
                            (void *)2/* item data */, NULL/* parent */,
                            ELM_GENLIST_ITEM_TREE, gl4_sel/* func */,
                            NULL/* func data */);
-   elm_genlist_item_append(gl, api->itc1,
+   elm_genlist_item_append(gl, api->itc,
                            (void *)3/* item data */, NULL/* parent */,
                            ELM_GENLIST_ITEM_NONE, gl4_sel/* func */,
                            NULL/* func data */);
+   elm_genlist_item_append(gl, api->itc1,
+                           (void *)4/* item data */, NULL/* parent */,
+                           ELM_GENLIST_ITEM_NONE, gl4_sel/* func */,
+                           NULL/* func data */);
 
    elm_genlist_item_class_free(api->itc1);
    elm_genlist_item_class_free(api->itc2);
+   elm_genlist_item_class_free(api->itc);
 
    evas_object_smart_callback_add(gl, "expand,request", gl4_exp_req, api);
    evas_object_smart_callback_add(gl, "contract,request", gl4_con_req, api);

-- 


Reply via email to