Fixed in svn, thanks a lot for your comment.

On 21/05/12 03:56, ChunEon Park wrote:
> How about set the default time to 0.25?
>
> Currently  ecore double_click_time is 0.25.
>
>
> ------------------------------------
>
> -Regards, Hermet-
>
>
>
> -----Original Message-----
> From: "Enlightenment SVN"<[email protected]>
> To:<[email protected]>;
> Cc:
> Sent: 2012-05-20 (일) 23:56:35
> Subject: E SVN: tasn IN trunk/elementary: config/default config/illume 
> config/standard src/lib
>
> Log:
> Elm glayer: Made tap timeout a config.
>
> Author:       tasn
> Date:         2012-05-20 07:56:35 -0700 (Sun, 20 May 2012)
> New Revision: 71258
> Trac:         http://trac.enlightenment.org/e/changeset/71258
>
> Modified:
>    trunk/elementary/config/default/base.src 
> trunk/elementary/config/illume/base.src 
> trunk/elementary/config/standard/base.src 
> trunk/elementary/src/lib/elm_config.c 
> trunk/elementary/src/lib/elm_gesture_layer.c 
> trunk/elementary/src/lib/elm_priv.h
>
> Modified: trunk/elementary/config/default/base.src
> ===================================================================
> --- trunk/elementary/config/default/base.src  2012-05-20 14:56:32 UTC (rev 
> 71257)
> +++ trunk/elementary/config/default/base.src  2012-05-20 14:56:35 UTC (rev 
> 71258)
> @@ -55,6 +55,7 @@
>     value "glayer_line_angular_tolerance" double: 20.0;
>     value "glayer_flick_time_limit_ms" uint: 120; /* ms to finish flick */
>     value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start 
> long-tap */
> +  value "glayer_double_tap_timeout" double: 0.2; /* Timeout between two 
> mouse dows when doing double click (and more). */
>     value "glayer_continues_enable" uchar: 1;          /* Continues gesture 
> enabled */
>     value "week_start" int: 1;
>     value "weekend_start" int: 6;
>
> Modified: trunk/elementary/config/illume/base.src
> ===================================================================
> --- trunk/elementary/config/illume/base.src   2012-05-20 14:56:32 UTC (rev 
> 71257)
> +++ trunk/elementary/config/illume/base.src   2012-05-20 14:56:35 UTC (rev 
> 71258)
> @@ -55,6 +55,7 @@
>     value "glayer_line_angular_tolerance" double: 20.0
>     value "glayer_flick_time_limit_ms" uint: 100; /* ms to finish flick */
>     value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start 
> long-tap */
> +  value "glayer_double_tap_timeout" double: 0.2; /* Timeout between two 
> mouse dows when doing double click (and more). */
>     value "glayer_continues_enable" uchar: 1;          /* Continues gesture 
> enabled */
>     value "week_start" int: 1;
>     value "weekend_start" int: 6;
>
> Modified: trunk/elementary/config/standard/base.src
> ===================================================================
> --- trunk/elementary/config/standard/base.src 2012-05-20 14:56:32 UTC (rev 
> 71257)
> +++ trunk/elementary/config/standard/base.src 2012-05-20 14:56:35 UTC (rev 
> 71258)
> @@ -55,6 +55,7 @@
>     value "glayer_line_angular_tolerance" double: 20.0;
>     value "glayer_flick_time_limit_ms" uint: 120; /* ms to finish flick */
>     value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start 
> long-tap */
> +  value "glayer_double_tap_timeout" double: 0.2; /* Timeout between two 
> mouse dows when doing double click (and more). */
>     value "glayer_continues_enable" uchar: 1;          /* Continues gesture 
> enabled */
>     value "week_start" int: 1;
>     value "weekend_start" int: 6;
>
> Modified: trunk/elementary/src/lib/elm_config.c
> ===================================================================
> --- trunk/elementary/src/lib/elm_config.c     2012-05-20 14:56:32 UTC (rev 
> 71257)
> +++ trunk/elementary/src/lib/elm_config.c     2012-05-20 14:56:35 UTC (rev 
> 71258)
> @@ -377,6 +377,7 @@
>      ELM_CONFIG_VAL(D, T, glayer_line_angular_tolerance, T_DOUBLE);
>      ELM_CONFIG_VAL(D, T, glayer_flick_time_limit_ms, T_INT);
>      ELM_CONFIG_VAL(D, T, glayer_long_tap_start_timeout, T_DOUBLE);
> +   ELM_CONFIG_VAL(D, T, glayer_double_tap_timeout, T_DOUBLE);
>      ELM_CONFIG_VAL(D, T, access_mode, T_INT);
>      ELM_CONFIG_VAL(D, T, glayer_continues_enable, T_UCHAR);
>      ELM_CONFIG_VAL(D, T, week_start, T_INT);
> @@ -1032,6 +1033,7 @@
>      _elm_config->glayer_line_angular_tolerance = 20.0; /* 20 DEG */
>      _elm_config->glayer_flick_time_limit_ms = 120;              /* ms to 
> finish flick */
>      _elm_config->glayer_long_tap_start_timeout = 1.2;   /* 1.2 second to 
> start long-tap */
> +   _elm_config->glayer_double_tap_timeout = 0.2;   /* 0.2 seconds between 
> 2 mouse downs of a tap. */
>      _elm_config->glayer_continues_enable = EINA_TRUE;      /* Continue 
> gestures default */
>      _elm_config->week_start = 1; /* monday */
>      _elm_config->weekend_start = 6; /* saturday */
>
> Modified: trunk/elementary/src/lib/elm_gesture_layer.c
> ===================================================================
> --- trunk/elementary/src/lib/elm_gesture_layer.c      2012-05-20 14:56:32 UTC 
> (rev 71257)
> +++ trunk/elementary/src/lib/elm_gesture_layer.c      2012-05-20 14:56:35 UTC 
> (rev 71258)
> @@ -11,8 +11,6 @@
>   #define ELM_GESTURE_MULTI_TIMEOUT 50
>   #define ELM_GESTURE_MINIMUM_MOMENTUM 0.001
>
> -#define ELM_GESTURE_TAP_TIMEOUT 0.2
> -
>   /* Some Trigo values */
>   #define RAD_90DEG  M_PI_2
>   #define RAD_180DEG M_PI
> @@ -1384,7 +1382,8 @@
>            pe_list = _record_pointer_event(st, pe_list, pe, wd, event_info, 
> event_type);
>            if (!wd->gest_taps_timeout)
>              {
> -              wd->gest_taps_timeout = 
> ecore_timer_add(ELM_GESTURE_TAP_TIMEOUT,
> +              wd->gest_taps_timeout =
> +                 ecore_timer_add(_elm_config->glayer_double_tap_timeout,
>                       _multi_tap_timeout, gesture->obj);
>              }
>            else
> @@ -3502,6 +3501,10 @@
>      wd->repeat_events = EINA_TRUE;
>      wd->glayer_continues_enable = _elm_config->glayer_continues_enable;
>
> +   /* FIXME: Hack to get around old configs - if too small, enlarge. */
> +   if (_elm_config->glayer_double_tap_timeout< 0.00001)
> +      _elm_config->glayer_double_tap_timeout = 0.2;
> +
>      memset(wd->gesture, 0, sizeof(wd->gesture));
>
>      return obj;
>
> Modified: trunk/elementary/src/lib/elm_priv.h
> ===================================================================
> --- trunk/elementary/src/lib/elm_priv.h       2012-05-20 14:56:32 UTC (rev 
> 71257)
> +++ trunk/elementary/src/lib/elm_priv.h       2012-05-20 14:56:35 UTC (rev 
> 71258)
> @@ -167,6 +167,7 @@
>      double        glayer_line_angular_tolerance;
>      unsigned int  glayer_flick_time_limit_ms;
>      double        glayer_long_tap_start_timeout;
> +   double        glayer_double_tap_timeout;
>      int           access_mode;
>      Eina_Bool     glayer_continues_enable;
>      int           week_start;
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to