summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/test_genlist.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index b9d84b13a..ff640025a 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -39,6 +39,8 @@ enum _api_state
39}; 39};
40typedef enum _api_state api_state; 40typedef enum _api_state api_state;
41 41
42static int bounce_max = 50;
43
42static void 44static void
43set_api_state(api_data *api) 45set_api_state(api_data *api)
44{ 46{
@@ -299,7 +301,7 @@ _bounce_cb(void *data)
299 elm_genlist_item_bring_in(bounce->it2, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); 301 elm_genlist_item_bring_in(bounce->it2, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
300 else 302 else
301 elm_genlist_item_bring_in(bounce->it1, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); 303 elm_genlist_item_bring_in(bounce->it1, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
302 if (bounce->state > 50) 304 if (bounce->state > bounce_max)
303 { 305 {
304 if (getenv("ELM_TEST_AUTOBOUNCE")) elm_exit(); 306 if (getenv("ELM_TEST_AUTOBOUNCE")) elm_exit();
305 } 307 }
@@ -414,7 +416,11 @@ test_genlist(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
414 evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _btdel_cb, bounce); 416 evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _btdel_cb, bounce);
415 417
416 max = 2000; 418 max = 2000;
417 if (getenv("ELM_TEST_AUTOBOUNCE")) max = 200; 419 if (getenv("ELM_TEST_AUTOBOUNCE"))
420 {
421 max = 200;
422 bounce_max = atoi(getenv("ELM_TEST_AUTOBOUNCE"));
423 }
418 for (i = 0; i < max; i++) 424 for (i = 0; i < max; i++)
419 { 425 {
420 gli = elm_genlist_item_append(gl, api->itc1, 426 gli = elm_genlist_item_append(gl, api->itc1,