summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-09-17 16:37:55 -0700
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-09-17 16:37:55 -0700
commitb32de6df350b98c54d2bb3ba493052b362a6a833 (patch)
tree359a4c04e98cf3fbcd5410ebc7b2f83051a15f8f
parent996ad5b8b64faf63192d3e661b448f1cb5842470 (diff)
test_genlist: added a test to clear the genlist no item,focused call.
-rw-r--r--src/bin/test_genlist.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 73bb1a4f2..73f3ea003 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -4147,6 +4147,13 @@ _gl_focus_move_policy_changed_cb(void *data EINA_UNUSED,
4147} 4147}
4148 4148
4149static void 4149static void
4150_gl_focus_item_focus_cb(void *data, Evas_Object *obj, void *event_info)
4151{
4152 printf("%s: %p\n", (char *)data, event_info);
4153 elm_genlist_clear(obj);
4154}
4155
4156static void
4150_gl_focus_item_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) 4157_gl_focus_item_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
4151{ 4158{
4152 printf("%s: %p\n", (char *)data, event_info); 4159 printf("%s: %p\n", (char *)data, event_info);
@@ -4555,8 +4562,8 @@ test_genlist_focus(void *data EINA_UNUSED,
4555 elm_box_pack_end(bx2, gl); 4562 elm_box_pack_end(bx2, gl);
4556 api->gl = gl; 4563 api->gl = gl;
4557 evas_object_show(gl); 4564 evas_object_show(gl);
4558 evas_object_smart_callback_add(gl, "item,focused", _gl_focus_item_cb, "item,focused"); 4565 evas_object_smart_callback_add(gl, "item,focused", _gl_focus_item_focus_cb, "item,focused");
4559 evas_object_smart_callback_add(gl, "item,unfocused", _gl_focus_item_cb, "item,unfocused"); 4566 evas_object_smart_callback_add(gl, "item,unfocused", _gl_focus_item_focus_cb, "item,unfocused");
4560 evas_object_smart_callback_add(gl, "selected", _gl_focus_item_cb, "selected"); 4567 evas_object_smart_callback_add(gl, "selected", _gl_focus_item_cb, "selected");
4561 evas_object_smart_callback_add(gl, "unselected", _gl_focus_item_cb, "unselected"); 4568 evas_object_smart_callback_add(gl, "unselected", _gl_focus_item_cb, "unselected");
4562 evas_object_smart_callback_add(gl, "activated", _gl_focus_item_cb, "activated"); 4569 evas_object_smart_callback_add(gl, "activated", _gl_focus_item_cb, "activated");