Oh. Sorry for about that. 
E-mail system is little bit strange. (I attached .txt file)
I add content of my patch file as below. 

================================================================================================================

Index: config/default/base.src
===================================================================
--- config/default/base.src     (revision 54850)
+++ config/default/base.src     (working copy)
@@ -29,4 +29,5 @@ group "Elm_Config" struct {
   value "fileselector_expand_enable" uchar: 0;
   value "inwin_dialogs_enable" uchar: 1;
   value "icon_size" int: 32;
+  value "longpress_timeout" double: 1.0;
 }
Index: src/lib/elm_config.c
===================================================================
--- src/lib/elm_config.c        (revision 54850)
+++ src/lib/elm_config.c        (working copy)
@@ -352,6 +352,7 @@ _desc_init(void)
    ELM_CONFIG_VAL(D, T, fileselector_expand_enable, T_UCHAR);
    ELM_CONFIG_VAL(D, T, inwin_dialogs_enable, T_UCHAR);
    ELM_CONFIG_VAL(D, T, icon_size, T_INT);
+   ELM_CONFIG_VAL(D, T, longpress_timeout, T_DOUBLE);
 #undef T
 #undef D
 #undef T_INT
@@ -853,6 +854,7 @@ _config_load(void)
    _elm_config->fileselector_expand_enable = EINA_FALSE;
    _elm_config->inwin_dialogs_enable = EINA_FALSE;
    _elm_config->icon_size = 32;
+   _elm_config->longpress_timeout = 1.0;
 }
 
 static const char *
@@ -1250,6 +1252,10 @@ _env_get(void)
 
    s = getenv("ELM_ICON_SIZE");
    if (s) _elm_config->icon_size = atoi(s);
+   
+   s = getenv("ELM_LONGPRESS_TIMEOUT");
+   if (s) _elm_config->longpress_timeout = atof(s);
+   if (_elm_config->longpress_timeout < 0.0) _elm_config->longpress_timeout = 
0.0;
 }
 
 void
Index: src/lib/elm_main.c
===================================================================
--- src/lib/elm_main.c  (revision 54850)
+++ src/lib/elm_main.c  (working copy)
@@ -2483,3 +2483,28 @@ elm_object_tree_dot_dump(const Evas_Object *top, c
    (void)file;
 #endif
 }
+
+/**
+ * Set the duration for occuring long press event.
+ *
+ * @param lonpress_timeout Timeout for long press event
+ * @ingroup Longpress
+ */
+EAPI void
+elm_longpress_timeout_set(double longpress_timeout)
+{
+   _elm_config->longpress_timeout = longpress_timeout;
+}
+
+/**
+ * Get the duration for occuring long press event.
+ *
+ * @return Timeout for long press event
+ * @ingroup Longpress
+ */
+EAPI double
+elm_longpress_timeout_get(void)
+{
+   return _elm_config->longpress_timeout;
+}
+
Index: src/lib/elm_priv.h
===================================================================
--- src/lib/elm_priv.h  (revision 54850)
+++ src/lib/elm_priv.h  (working copy)
@@ -103,6 +103,7 @@ struct _Elm_Config
    Eina_Bool    fileselector_expand_enable;
    Eina_Bool    inwin_dialogs_enable;
    int          icon_size;
+   double       longpress_timeout;
 };
 
 struct _Elm_Module
Index: src/lib/Elementary.h.in
===================================================================
--- src/lib/Elementary.h.in     (revision 54850)
+++ src/lib/Elementary.h.in     (working copy)
@@ -361,12 +361,16 @@ extern "C" {
 
    EAPI void         elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, 
int times_h, Evas_Coord *h);
 
+   EAPI double       elm_longpress_timeout_get(void);
+   EAPI void         elm_longpress_timeout_set(double longpress_timeout);
+
    /* debug
     * don't use it unless you are sure
     */
    EAPI void         elm_object_tree_dump(const Evas_Object *top);
    EAPI void         elm_object_tree_dot_dump(const Evas_Object *top, const 
char *file);
 
+
    /* theme */
    typedef struct _Elm_Theme Elm_Theme;
 
====================================================================================================



------- Original Message -------
Sender : Iv?n Briano (Sachiel)<sachi...@gmail.com>
Date : 2010-11-23 21:24 (GMT+09:00)
Title : Re: [E-devel] [PATCH] Add "longpress_timeout" in "_elm_config" 
structure.

2010/11/23 woohyun jung :
> Hello. I'm WooHyun Jung.
>
> I wanna add "longpress_timeout" in "_elm_config" structure.
> I checked ~ some winsets did hard-coding about setting timeout of long press 
> event.
> (For example :  wd->longpress_timeout = LONGPRESS_TIMEOUT in elm_genlist.c)
> So, I thought ~ it would be better if "longpress_timeout" is in _elm_config 
> structure.
>
> Please check my patch file ~
> If I need to do something more ~ don't hesitate to give advice ~
> Thanks !

No patch attached. Make sure it gets recognized as type text or the list
will filter it out.

>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to