path: root/src/bin
diff options
authorJaehyun Cho <>2019-08-02 10:43:45 +0200
committerXavi Artigas <>2019-08-02 10:50:02 +0200
commitb1e697df1c57005219011f65178e3ea7a01db5f5 (patch)
treef654baca1d9ef9a96bcfc03d39168dc6ec8e6c5e /src/bin
parentded6dc901765b834b0ead76e8573899fc198a372 (diff)
efl_input_clickable: increase the time interval for repeated counter
Summary: The repeated counter in Efl.Input.Clickable_Clicked can be used to identify double click or triple click. Previously, the repeated counter in Efl.Input.Clickable_Clicked was calculated within the time interval 0.1 second. Now, the time interval for the repeated counter is increased to 0.25 second. It seems that 0.25 second is more appropriate to identify if the two consecutive clicks should be considered together. (e.g. considered as double click or triple click) Moreover, in ecore_event and edje, 0.25 second is already used as a time interval for double click. Test Plan: 1. Run Efl.Ui.Button in elementary_test 2. Do double click or triple click the buttons Reviewers: segfaultxavi, bu5hm4n, YOhoho Reviewed By: segfaultxavi, YOhoho Subscribers: YOhoho, cedric, #reviewers, #committers Tags: #efl Differential Revision:
Diffstat (limited to 'src/bin')
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/elementary/test_ui_button.c b/src/bin/elementary/test_ui_button.c
index 62be0bca4f..9571930f6f 100644
--- a/src/bin/elementary/test_ui_button.c
+++ b/src/bin/elementary/test_ui_button.c
@@ -5,9 +5,10 @@
5#include <Elementary.h> 5#include <Elementary.h>
6 6
7static void 7static void
8_clicked(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) 8_clicked(void *data EINA_UNUSED, const Efl_Event *ev)
9{ 9{
10 printf("Button is clicked!!!\n"); 10 Efl_Input_Clickable_Clicked *clicked = ev->info;
11 printf("Button is clicked!!! repeated(%d) button(%d)\n", clicked->repeated, clicked->button);
11} 12}
12 13
13static void 14static void