seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=59790012f7c716593181b30a2799a8b965694bd1

commit 59790012f7c716593181b30a2799a8b965694bd1
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Dec 25 03:34:26 2015 +0900

    genlist: Remove genlist clear scenario from the basic genlist test.
    
    It was a bad idea to add this test to the basic genlist test. Moving the
    focus with arrow keys faced unexpected genlist clear to testers. We have
    "genlist del" test so it's ok to remove this.
---
 src/bin/test_genlist.c | 36 +++++++-----------------------------
 1 file changed, 7 insertions(+), 29 deletions(-)

diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index ab09b3c..36cd529 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -130,10 +130,7 @@ gl_text_get1(void *data, Evas_Object *obj EINA_UNUSED, 
const char *part EINA_UNU
    char buf[256];
    int num = (int)(uintptr_t)data;
 
-   if (num == 5)
-     snprintf(buf, sizeof(buf), "Item # %i (Genlist Clear on Select)", num);
-   else
-     snprintf(buf, sizeof(buf), "Item # %i", num);
+   snprintf(buf, sizeof(buf), "Item # %i", num);
 
    return strdup(buf);
 }
@@ -220,13 +217,6 @@ gl_sel(void *data, Evas_Object *obj, void *event_info)
 }
 
 static void
-gl_sel_clear_cb(void *data EINA_UNUSED, Evas_Object *obj,
-                void *event_info EINA_UNUSED)
-{
-   elm_genlist_clear(obj);
-}
-
-static void
 _move(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void 
*event_info)
 {
    Evas_Object *gl = data;
@@ -426,24 +416,12 @@ test_genlist(void *data EINA_UNUSED, Evas_Object *obj 
EINA_UNUSED, void *event_i
    if (getenv("ELM_TEST_AUTOBOUNCE")) max = 200;
    for (i = 0; i < max; i++)
      {
-        if (i == 5)
-          {
-             gli = elm_genlist_item_append(gl, api->itc1,
-                                           (void *)(uintptr_t)i/* item data */,
-                                           NULL/* parent */,
-                                           ELM_GENLIST_ITEM_NONE,
-                                           gl_sel_clear_cb/* func */,
-                                           (void *)(uintptr_t)(i * 10)/* func 
data */);
-          }
-        else
-          {
-             gli = elm_genlist_item_append(gl, api->itc1,
-                                           (void *)(uintptr_t)i/* item data */,
-                                           NULL/* parent */,
-                                           ELM_GENLIST_ITEM_NONE,
-                                           gl_sel/* func */,
-                                           (void *)(uintptr_t)(i * 10)/* func 
data */);
-          }
+        gli = elm_genlist_item_append(gl, api->itc1,
+                                      (void *)(uintptr_t)i/* item data */,
+                                      NULL/* parent */,
+                                      ELM_GENLIST_ITEM_NONE,
+                                      gl_sel/* func */,
+                                      (void *)(uintptr_t)(i * 10)/* func data 
*/);
 
         if (i == 50)
           evas_object_smart_callback_add(bt_50, "clicked", _bt50_cb, gli);

-- 


Reply via email to