From 6df68b490d7185d094dd79a6108359c537b59e49 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 17 Apr 2013 14:15:19 +0900 Subject: [PATCH] test_list.c, test_genlist.c: fixed wrong edge,top/bottom/left/right smart callback usecases. 1. use correct name: scroll,edge,top -> edge,top. 2. use edge callbacks in the right test case. --- legacy/elementary/src/bin/test_genlist.c | 8 ++++---- legacy/elementary/src/bin/test_list.c | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c index d383caa..16dc738 100644 --- a/legacy/elementary/src/bin/test_genlist.c +++ b/legacy/elementary/src/bin/test_genlist.c @@ -1170,10 +1170,6 @@ test_genlist5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in evas_object_smart_callback_add(gl, "drag,start,down", item_drag_down, NULL); evas_object_smart_callback_add(gl, "drag,start,left", item_drag_left, NULL); evas_object_smart_callback_add(gl, "drag,start,right", item_drag_right, NULL); - evas_object_smart_callback_add(gl, "scroll,edge,top", scroll_top, NULL); - evas_object_smart_callback_add(gl, "scroll,edge,bottom", scroll_bottom, NULL); - evas_object_smart_callback_add(gl, "scroll,edge,left", scroll_left, NULL); - evas_object_smart_callback_add(gl, "scroll,edge,right", scroll_right, NULL); evas_object_smart_callback_add(gl, "drag", item_drag, NULL); evas_object_smart_callback_add(gl, "drag,stop", item_drag_stop, NULL); evas_object_smart_callback_add(gl, "longpressed", item_longpress, NULL); @@ -1363,6 +1359,10 @@ test_genlist6(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); elm_genlist_tree_effect_enabled_set(gl, EINA_TRUE); + evas_object_smart_callback_add(gl, "edge,left", scroll_left, NULL); + evas_object_smart_callback_add(gl, "edge,right", scroll_right, NULL); + evas_object_smart_callback_add(gl, "edge,top", scroll_top, NULL); + evas_object_smart_callback_add(gl, "edge,bottom", scroll_bottom, NULL); itc1 = elm_genlist_item_class_new(); itc1->item_style = "default"; diff --git a/legacy/elementary/src/bin/test_list.c b/legacy/elementary/src/bin/test_list.c index ea5794c..eef6b52 100644 --- a/legacy/elementary/src/bin/test_list.c +++ b/legacy/elementary/src/bin/test_list.c @@ -433,10 +433,8 @@ test_list(void *data __UNUSED__, evas_object_resize(win, 320, 300); evas_object_show(win); - evas_object_smart_callback_add(li, "scroll,edge,top", scroll_top, NULL); - evas_object_smart_callback_add(li, "scroll,edge,bottom", scroll_bottom, NULL); - evas_object_smart_callback_add(li, "scroll,edge,left", scroll_left, NULL); - evas_object_smart_callback_add(li, "scroll,edge,right", scroll_right, NULL); + evas_object_smart_callback_add(li, "edge,top", scroll_top, NULL); + evas_object_smart_callback_add(li, "edge,bottom", scroll_bottom, NULL); } void @@ -457,6 +455,9 @@ test_list_horizontal(void *data __UNUSED__, evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_win_resize_object_add(win, li); + evas_object_smart_callback_add(li, "edge,left", scroll_left, NULL); + evas_object_smart_callback_add(li, "edge,right", scroll_right, NULL); + ic = elm_icon_add(win); snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); elm_image_file_set(ic, buf, NULL); -- 2.7.4