From d7d18c8863e803545a4ed4f770fc715ba40c88b8 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Thu, 7 Feb 2013 13:26:37 +0000 Subject: [PATCH] [access] test lines for r83742 SVN revision: 83753 --- legacy/elementary/src/bin/test_genlist.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c index da73399..2822802 100644 --- a/legacy/elementary/src/bin/test_genlist.c +++ b/legacy/elementary/src/bin/test_genlist.c @@ -891,6 +891,23 @@ Eina_Bool gl3_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, cons return EINA_FALSE; } +static void _realized(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *ei) +{ + Evas_Object *check; + Eina_List *items; + items = NULL; + + if (!ei) return; + Elm_Object_Item *item = ei; + + check = elm_object_item_part_content_get(item, "elm.swallow.end"); + + if (!check) return; + + items = eina_list_append(items, check); + elm_object_item_access_order_set(item, items); +} + void test_genlist4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { @@ -912,6 +929,8 @@ test_genlist4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_show(gl); + evas_object_smart_callback_add(gl, "realized", _realized, NULL); + itc3.item_style = "default"; itc3.func.text_get = gl3_text_get; itc3.func.content_get = gl3_content_get; -- 2.7.4