_draw_rects(data, x);
evas_object_smart_callback_call(cp->parent, "changed", NULL);
cp->button_state = L_BUTTON_PRESSED;
- wd->lp_timer = ecore_timer_add(elm_longpress_timeout_get(), _long_press_timer, cp);
+ wd->lp_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press_timer, cp);
}
static void
_draw_rects(data, x);
evas_object_smart_callback_call(cp->parent, "changed", NULL);
cp->button_state = R_BUTTON_PRESSED;
- wd->lp_timer = ecore_timer_add(elm_longpress_timeout_get(), _long_press_timer, cp);
+ wd->lp_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press_timer, cp);
}
static void
if (ev->button != 1) return;
// if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
if (wd->longpress_timer) ecore_timer_del(wd->longpress_timer);
- wd->longpress_timer = ecore_timer_add(elm_longpress_timeout_get(), _long_press, data);
+ wd->longpress_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press, data);
wd->downx = ev->canvas.x;
wd->downy = ev->canvas.y;
}
evas_object_smart_callback_call(item->wd->self, "clicked", item);
if (item->long_timer) ecore_timer_del(item->long_timer);
if (item->realized)
- item->long_timer = ecore_timer_add(elm_longpress_timeout_get(), _long_press, item);
+ item->long_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press, item);
else
item->long_timer = NULL;
}
wd->mode = ELM_LIST_SCROLL;
wd->max_items_per_block = MAX_ITEMS_PER_BLOCK;
wd->max_items_per_block = 32;
- wd->longpress_timeout = elm_longpress_timeout_get();
+ wd->longpress_timeout = _elm_config->longpress_timeout;
wd->max_git_num = 0;
evas_object_smart_callback_add(obj, "scroll-hold-on", _hold_on, obj);
_item_hilight(it);
wd->longpressed = EINA_FALSE;
if (it->long_timer) ecore_timer_del(it->long_timer);
- it->long_timer = ecore_timer_add(elm_longpress_timeout_get(), _long_press, it);
+ it->long_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press, it);
/* Always call the callbacks last - the user may delete our context! */
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
evas_object_smart_callback_call(it->obj, "clicked", it);
evas_object_smart_callback_call(data, SIG_PRESS, ev);
wd->longpressed = EINA_FALSE;
if (wd->long_timer) ecore_timer_del(wd->long_timer);
- wd->long_timer = ecore_timer_add(elm_longpress_timeout_get(), _long_press, data);
+ wd->long_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press, data);
}
static void
evas_object_smart_callback_call(data, "press", NULL);
wd->longpressed = EINA_FALSE;
if (wd->long_timer) ecore_timer_del(wd->long_timer);
- wd->long_timer = ecore_timer_add(elm_longpress_timeout_get(), _long_press, data);
+ wd->long_timer = ecore_timer_add(_elm_config->longpress_timeout, _long_press, data);
}
static void