From b74c805a74a2ff2424a273920de0196aee1e7080 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 23 Jan 2014 23:11:12 +0900 Subject: [PATCH] list: Used macro for list swipe time like genlist. --- legacy/elementary/src/lib/elm_list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_list.c b/legacy/elementary/src/lib/elm_list.c index 08055afaa1..487125603b 100644 --- a/legacy/elementary/src/lib/elm_list.c +++ b/legacy/elementary/src/lib/elm_list.c @@ -15,6 +15,8 @@ EAPI Eo_Op ELM_OBJ_LIST_BASE_ID = EO_NOOP; #define MY_CLASS_NAME "Elm_List" #define MY_CLASS_NAME_LEGACY "elm_list" +#define ELM_LIST_SWIPE_TIME 0.4 + static const char SIG_ACTIVATED[] = "activated"; static const char SIG_CLICKED_DOUBLE[] = "clicked,double"; static const char SIG_SELECTED[] = "selected"; @@ -1238,7 +1240,7 @@ _mouse_down_cb(void *data, it->long_timer = ecore_timer_add (_elm_config->longpress_timeout, _long_press_cb, it); ecore_timer_del(it->swipe_timer); - it->swipe_timer = ecore_timer_add(0.4, _swipe_cancel, it); + it->swipe_timer = ecore_timer_add(ELM_LIST_SWIPE_TIME, _swipe_cancel, it); /* Always call the callbacks last - the user may delete our context! */ if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)