Re: [E-devel] E SVN: discomfitor trunk/PROTO/azy/src/lib

2010-11-30 Thread Mike Blumenkrantz
On Wed, 1 Dec 2010 05:22:20 -0200
Gustavo Sverzut Barbieri  wrote:

> On Wednesday, December 1, 2010, Enlightenment SVN
>  wrote:
> > Log:
> > add custom parser for headers, avoiding regexec and reducing stack size by
> > not using alloca to convert unsigned char* to char* for regexec
> 
> This approach is not the best, instead of calling couple of "dumb"
> checker functions change them to return offsets so you avoid
> repetitive lookups in the buffer and know for sure where things are
> and where to jump or how much to skip.
> 
> That includes no memchr() as well, just do it with stripping of spaces
> all together, keep pointers and call eina_stringshare_add_length()
> with base pointer and end-base difference.
> 
> For http header validation (getting numbers) you can also use strtol()
> which does similar handling and gives you the pointer to first
> non-number char
> 
> 
> >
> >
> > Author:       discomfitor
> > Date:         2010-11-30 21:28:13 -0800 (Tue, 30 Nov 2010)
> > New Revision: 55111
> > Trac:         http://trac.enlightenment.org/e/changeset/55111
> >
> > Modified:
> >   trunk/PROTO/azy/src/lib/azy_events.c
> >
> > Modified: trunk/PROTO/azy/src/lib/azy_events.c
> > ===
> > --- trunk/PROTO/azy/src/lib/azy_events.c        2010-12-01 04:43:58 UTC
> > (rev 55110) +++ trunk/PROTO/azy/src/lib/azy_events.c        2010-12-01
> > 05:28:13 UTC (rev 55111) @@ -24,17 +24,43 @@
> >  static char _init = 0;
> >  static regex_t __response;
> >  static regex_t request;
> > -static regex_t a_header;
> >
> >  static void
> >  _azy_events_init(void)
> >  {
> >     regcomp(&request, "^(GET|HEAD|POST|PUT) ([^ @\\]+) HTTP/1\\.([0-1])$",
> > REG_EXTENDED);
> > -   regcomp(&a_header, "^([a-zA-Z-]+): ([[:alnum:][:punct:] ]+)",
> > REG_EXTENDED); regcomp(&__response, "^HTTP/1\\.([0-1]) ([0-9]{3}) (.+)$",
> > REG_EXTENDED); _init = 1;
> >  }
> >
> > +static Eina_Bool
> > +_azy_events_valid_header_name(const char *name, unsigned int len)
> > +{
> > +   while (len--)
> > +     {
> > +        if ((!isalnum(*name)) && (*name != '-'))
> > +          return EINA_FALSE;
> > +
> > +        name++;
> > +     }
> > +
> > +   return EINA_TRUE;
> > +}
> > +
> > +static Eina_Bool
> > +_azy_events_valid_header_value(const char *name, unsigned int len)
> > +{
> > +   while (len--)
> > +     {
> > +        if (!isprint(*name))
> > +          return EINA_FALSE;
> > +
> > +        name++;
> > +     }
> > +
> > +   return EINA_TRUE;
> > +}
> > +
> >  int
> >  azy_events_type_parse(Azy_Net            *net,
> >                         int                  type,
> > @@ -151,7 +177,6 @@
> >                           size_t         event_len,
> >                           int            offset)
> >  {
> > -   regmatch_t match[3];
> >     unsigned char *c = NULL, *r = NULL, *p = NULL, *start = NULL,
> > *buf_start = NULL; unsigned char *data = (event_data) ? event_data +
> > offset : NULL; size_t len = (event_len) ? event_len - offset : 0;
> > @@ -267,27 +292,36 @@
> >     line_len = r - p;
> >     while (len && c && r)
> >       {
> > -        char *ptr;
> > +        const unsigned char *ptr, *semi;
> >
> >          if (line_len > 4096)
> >            {
> >               WARN("Ignoring unreasonably large header starting with:\n
> > %.32s\n", p); goto skip_header;
> >            }
> > -        ptr = alloca(line_len + 1);
> > -        memcpy(ptr, p, line_len);
> > -        ptr[line_len] = '\0';
> > -        if (!regexec(&a_header, ptr, 3, match, 0))
> > -          {
> > -             char *key, *value;
> > +        semi = memchr(p, ':', line_len);
> > +        if ((!semi) || (semi - p + 1 >= line_len))
> > +          goto skip_header;
> > +        if (!_azy_events_valid_header_name((const char*)p, semi - p))
> > +          goto skip_header;
> >
> > -             key = strndupa(ptr + match[1].rm_so, match[1].rm_eo -
> > match[1].rm_so);
> > -             value = strndupa(ptr + match[2].rm_so, match[2].rm_eo -
> > match[2].rm_so);
> > -             INFO("Found header: key='%s'", key);
> > -             INFO("Found header: value='%s'", value);
> > -             azy_net_header_set(net, key, value);
> > -          }
> > +        ptr = semi + 1;
> > +        while ((isspace(*ptr)) && (ptr - p < line_len))
> > +          ptr++;
> >
> > +        if (!_azy_events_valid_header_value((const char*)ptr, line_len -
> > (ptr - p)))
> > +          goto skip_header;
> > +        {
> > +           char *key, *value;
> > +
> > +           key = strndupa((const char*)p, semi - p);
> > +           value = strndupa((const char*)ptr, line_len - (ptr - p));
> > +           INFO("Found header: key='%s'", key);
> > +           INFO("Found header: value='%s'", value);
> > +           azy_net_header_set(net, key, value);
> > +        }
> > +
> > +
> >  skip_header:
> >          len -= line_len + slen;
> >          if (len < slen)
> >
> >
> > -

Re: [E-devel] E SVN: raster IN trunk/TMP/st/elementary: data/themes src/bin src/lib

2010-11-30 Thread Gustavo Sverzut Barbieri
On Wednesday, December 1, 2010, Enlightenment SVN
 wrote:
> Log:
> hoverlist -> ctxpopup - as its not just a list really. it is a popup
>   of arbitrary content. list is one of them.

Okay, the list part was not 100% accurate naming, but now the name is
100% inaccurate and does not match any other efl name... Or is that
just me that can't find references for ctx or popup in elm?

Going into the abbrev, yes we do use it for genlist/grid, but it is
something that is annoying already



>
>
>
> Author:       raster
> Date:         2010-11-30 22:52:46 -0800 (Tue, 30 Nov 2010)
> New Revision: 55112
> Trac:         http://trac.enlightenment.org/e/changeset/55112
>
> Added:
>   trunk/TMP/st/elementary/src/bin/test_ctxpopup.c 
> trunk/TMP/st/elementary/src/lib/elm_ctxpopup.c
> Removed:
>   trunk/TMP/st/elementary/src/bin/test_hoverlist.c 
> trunk/TMP/st/elementary/src/lib/elc_hoverlist.c
> Modified:
>   trunk/TMP/st/elementary/data/themes/default.edc 
> trunk/TMP/st/elementary/src/bin/Makefile.am 
> trunk/TMP/st/elementary/src/bin/test.c 
> trunk/TMP/st/elementary/src/lib/Elementary.h.in 
> trunk/TMP/st/elementary/src/lib/Makefile.am
>
> Modified: trunk/TMP/st/elementary/data/themes/default.edc
> ===
> --- trunk/TMP/st/elementary/data/themes/default.edc     2010-12-01 05:28:13 
> UTC (rev 55111)
> +++ trunk/TMP/st/elementary/data/themes/default.edc     2010-12-01 06:52:46 
> UTC (rev 55112)
> @@ -6981,7 +6981,7 @@
>     }
>
>  ///
> -   group { name: "elm/hover/base/hoverlist/default";
> +   group { name: "elm/hover/base/ctxpopup/default";
>        images {
>           image: "bt_base2.png" COMP;
>           image: "bt_hilight.png" COMP;
> @@ -7418,10 +7418,10 @@
>     }
>
>  ///
> -   group { name: "elm/list/item/hoverlist";
> -      alias: "elm/list/item_odd/hoverlist";
> -      alias: "elm/list/h_item/hoverlist";
> -      alias: "elm/list/h_item_odd/hoverlist";
> +   group { name: "elm/list/item/ctxpopup";
> +      alias: "elm/list/item_odd/ctxpopup";
> +      alias: "elm/list/h_item/ctxpopup";
> +      alias: "elm/list/h_item_odd/ctxpopup";
>        parts {
>           part { name: "button_image";
>              mouse_events: 1;
> @@ -7551,7 +7551,7 @@
>     }
>
>  ///
> -   group { name: "elm/list/base/hoverlist";
> +   group { name: "elm/list/base/ctxpopup";
>        data {
>           item: "focus_highlight" "on";
>        }
>
> Modified: trunk/TMP/st/elementary/src/bin/Makefile.am
> ===
> --- trunk/TMP/st/elementary/src/bin/Makefile.am 2010-12-01 05:28:13 UTC (rev 
> 55111)
> +++ trunk/TMP/st/elementary/src/bin/Makefile.am 2010-12-01 06:52:46 UTC (rev 
> 55112)
> @@ -91,7 +91,7 @@
>  test_flipselector.c \
>  test_diskselector.c \
>  test_colorselector.c \
> -test_hoverlist.c \
> +test_ctxpopup.c \
>  test_bubble.c \
>  test_store.c
>
>
> Modified: trunk/TMP/st/elementary/src/bin/test.c
> ===
> --- trunk/TMP/st/elementary/src/bin/test.c      2010-12-01 05:28:13 UTC (rev 
> 55111)
> +++ trunk/TMP/st/elementary/src/bin/test.c      2010-12-01 06:52:46 UTC (rev 
> 55112)
> @@ -115,7 +115,7 @@
>  void test_flipselector(void *data, Evas_Object *obj, void *event_info);
>  void test_diskselector(void *data, Evas_Object *obj, void *event_info);
>  void test_colorselector(void *data, Evas_Object *obj, void *event_info);
> -void test_hoverlist(void *data, Evas_Object *obj, void *event_info);
> +void test_ctxpopup(void *data, Evas_Object *obj, void *event_info);
>  void test_bubble(void *data, Evas_Object *obj, void *event_info);
>  void test_store(void *data, Evas_Object *obj, void *event_info);
>
> @@ -350,7 +350,7 @@
>     ADD_TEST("Flip Selector", test_flipselector);
>     ADD_TEST("Disk Selector", test_diskselector);
>     ADD_TEST("Color Selector", test_colorselector);
> -   ADD_TEST("Hoverlist", test_hoverlist);
> +   ADD_TEST("Ctxpopup", test_ctxpopup);
>     ADD_TEST("Bubble", test_bubble);
>     ADD_TEST("Store", test_store);
>  #undef ADD_TEST
>
> Modified: trunk/TMP/st/elementary/src/lib/Elementary.h.in
> ===
> --- trunk/TMP/st/elementary/src/lib/Elementary.h.in     2010-12-01 05:28:13 
> UTC (rev 55111)
> +++ trunk/TMP/st/elementary/src/lib/Elementary.h.in     2010-12-01 06:52:46 
> UTC (rev 55112)
> @@ -2365,26 +2365,26 @@
>      * "changed" - when the color value changes
>      */
>
> -   /* hoverlist */
> -   typedef struct _Elm_Hoverlist_Item Elm_Hoverlist_Item;
> +   /* ctxpopup */
> +   typedef struct _Elm_Ctxpopup_Item Elm_Ctxpopup_Item;
>
> -   EAPI Evas_Object        *elm_hoverlist_add(Evas_Object* parent);
> -   EAPI void

Re: [E-devel] E SVN: discomfitor trunk/PROTO/azy/src/lib

2010-11-30 Thread Gustavo Sverzut Barbieri
On Wednesday, December 1, 2010, Enlightenment SVN
 wrote:
> Log:
> add custom parser for headers, avoiding regexec and reducing stack size by 
> not using alloca to convert unsigned char* to char* for regexec

This approach is not the best, instead of calling couple of "dumb"
checker functions change them to return offsets so you avoid
repetitive lookups in the buffer and know for sure where things are
and where to jump or how much to skip.

That includes no memchr() as well, just do it with stripping of spaces
all together, keep pointers and call eina_stringshare_add_length()
with base pointer and end-base difference.

For http header validation (getting numbers) you can also use strtol()
which does similar handling and gives you the pointer to first
non-number char


>
>
> Author:       discomfitor
> Date:         2010-11-30 21:28:13 -0800 (Tue, 30 Nov 2010)
> New Revision: 55111
> Trac:         http://trac.enlightenment.org/e/changeset/55111
>
> Modified:
>   trunk/PROTO/azy/src/lib/azy_events.c
>
> Modified: trunk/PROTO/azy/src/lib/azy_events.c
> ===
> --- trunk/PROTO/azy/src/lib/azy_events.c        2010-12-01 04:43:58 UTC (rev 
> 55110)
> +++ trunk/PROTO/azy/src/lib/azy_events.c        2010-12-01 05:28:13 UTC (rev 
> 55111)
> @@ -24,17 +24,43 @@
>  static char _init = 0;
>  static regex_t __response;
>  static regex_t request;
> -static regex_t a_header;
>
>  static void
>  _azy_events_init(void)
>  {
>     regcomp(&request, "^(GET|HEAD|POST|PUT) ([^ @\\]+) HTTP/1\\.([0-1])$", 
> REG_EXTENDED);
> -   regcomp(&a_header, "^([a-zA-Z-]+): ([[:alnum:][:punct:] ]+)", 
> REG_EXTENDED);
>     regcomp(&__response, "^HTTP/1\\.([0-1]) ([0-9]{3}) (.+)$", REG_EXTENDED);
>     _init = 1;
>  }
>
> +static Eina_Bool
> +_azy_events_valid_header_name(const char *name, unsigned int len)
> +{
> +   while (len--)
> +     {
> +        if ((!isalnum(*name)) && (*name != '-'))
> +          return EINA_FALSE;
> +
> +        name++;
> +     }
> +
> +   return EINA_TRUE;
> +}
> +
> +static Eina_Bool
> +_azy_events_valid_header_value(const char *name, unsigned int len)
> +{
> +   while (len--)
> +     {
> +        if (!isprint(*name))
> +          return EINA_FALSE;
> +
> +        name++;
> +     }
> +
> +   return EINA_TRUE;
> +}
> +
>  int
>  azy_events_type_parse(Azy_Net            *net,
>                         int                  type,
> @@ -151,7 +177,6 @@
>                           size_t         event_len,
>                           int            offset)
>  {
> -   regmatch_t match[3];
>     unsigned char *c = NULL, *r = NULL, *p = NULL, *start = NULL, *buf_start 
> = NULL;
>     unsigned char *data = (event_data) ? event_data + offset : NULL;
>     size_t len = (event_len) ? event_len - offset : 0;
> @@ -267,27 +292,36 @@
>     line_len = r - p;
>     while (len && c && r)
>       {
> -        char *ptr;
> +        const unsigned char *ptr, *semi;
>
>          if (line_len > 4096)
>            {
>               WARN("Ignoring unreasonably large header starting with:\n 
> %.32s\n", p);
>               goto skip_header;
>            }
> -        ptr = alloca(line_len + 1);
> -        memcpy(ptr, p, line_len);
> -        ptr[line_len] = '\0';
> -        if (!regexec(&a_header, ptr, 3, match, 0))
> -          {
> -             char *key, *value;
> +        semi = memchr(p, ':', line_len);
> +        if ((!semi) || (semi - p + 1 >= line_len))
> +          goto skip_header;
> +        if (!_azy_events_valid_header_name((const char*)p, semi - p))
> +          goto skip_header;
>
> -             key = strndupa(ptr + match[1].rm_so, match[1].rm_eo - 
> match[1].rm_so);
> -             value = strndupa(ptr + match[2].rm_so, match[2].rm_eo - 
> match[2].rm_so);
> -             INFO("Found header: key='%s'", key);
> -             INFO("Found header: value='%s'", value);
> -             azy_net_header_set(net, key, value);
> -          }
> +        ptr = semi + 1;
> +        while ((isspace(*ptr)) && (ptr - p < line_len))
> +          ptr++;
>
> +        if (!_azy_events_valid_header_value((const char*)ptr, line_len - 
> (ptr - p)))
> +          goto skip_header;
> +        {
> +           char *key, *value;
> +
> +           key = strndupa((const char*)p, semi - p);
> +           value = strndupa((const char*)ptr, line_len - (ptr - p));
> +           INFO("Found header: key='%s'", key);
> +           INFO("Found header: value='%s'", value);
> +           azy_net_header_set(net, key, value);
> +        }
> +
> +
>  skip_header:
>          len -= line_len + slen;
>          if (len < slen)
>
>
> --
> 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.
> h

Re: [E-devel] E SVN: discomfitor trunk/ecore/src/lib/ecore

2010-11-30 Thread Mike Blumenkrantz
On Wed, 1 Dec 2010 06:07:53 +0100 (CET)
Vincent Torri  wrote:

> 
> 
> On Tue, 30 Nov 2010, Enlightenment SVN wrote:
> 
> > Log:
> > switch to EINA_BOOL values for delete_me, fix huge O(n) behavior in
> > _ecore_main_fd_handlers_call; all fd operations now should see an
> > exponential speed increase based on the number of fds that ecore is watching
> 
> next time, split the commit into several parts (eina bool, then the speed 
> increase)
> 
> Vincent
> 
> >
> >
> > Author:   discomfitor
> > Date: 2010-11-30 18:34:48 -0800 (Tue, 30 Nov 2010)
> > New Revision: 55102
> > Trac: http://trac.enlightenment.org/e/changeset/55102
> >
> > Modified:
> >  trunk/ecore/src/lib/ecore/ecore_main.c
> >
> > Modified: trunk/ecore/src/lib/ecore/ecore_main.c
> > ===
> > --- trunk/ecore/src/lib/ecore/ecore_main.c  2010-12-01 01:17:45 UTC
> > (rev 55101) +++ trunk/ecore/src/lib/ecore/ecore_main.c  2010-12-01
> > 02:34:48 UTC (rev 55102) @@ -119,10 +119,14 @@
> > static Eina_List*fd_handlers_with_buffer = NULL;
> > static Eina_List*fd_handlers_to_delete = NULL;
> >
> > +static Eina_List*fd_handlers_to_call = NULL;
> > +static Eina_List*fd_handlers_to_call_current;
> > +static Eina_List*fd_handlers_to_call_current_next;
> > +
> > #ifdef _WIN32
> > static Ecore_Win32_Handler *win32_handlers = NULL;
> > static Ecore_Win32_Handler *win32_handler_current = NULL;
> > -static int  win32_handlers_delete_me = 0;
> > +static int  win32_handlers_delete_me = EINA_FALSE;
> > #endif
> >
> > #ifdef _WIN32
> > @@ -329,9 +333,33 @@
> >  ERR("deleted fd in epoll");
> >  continue;
> >   }
> > -if (ev[i].events & EPOLLIN) fdh->read_active = EINA_TRUE;
> > -if (ev[i].events & EPOLLOUT) fdh->write_active = EINA_TRUE;
> > -if (ev[i].events & EPOLLERR) fdh->error_active = EINA_TRUE;
> > +if (ev[i].events & EPOLLIN)
> > +  {
> > + if (!fdh->read_active)
> > +   {
> > +  fdh->read_active = EINA_TRUE;
> > +  if ((!fdh->write_active) && (!fdh->error_active))
> > +fd_handlers_to_call =
> > eina_list_append(fd_handlers_to_call, fdh);
> > +   }
> > +  }
> > +if (ev[i].events & EPOLLOUT)
> > +  {
> > + if (!fdh->write_active)
> > +   {
> > +  fdh->write_active = EINA_TRUE;
> > +  if ((!fdh->read_active) && (!fdh->error_active))
> > +fd_handlers_to_call =
> > eina_list_append(fd_handlers_to_call, fdh);
> > +   }
> > +  }
> > +if (ev[i].events & EPOLLERR)
> > +  {
> > + if (!fdh->error_active)
> > +   {
> > +  fdh->error_active = EINA_TRUE;
> > +  if ((!fdh->read_active) && (!fdh->write_active))
> > +fd_handlers_to_call =
> > eina_list_append(fd_handlers_to_call, fdh);
> > +   }
> > +  }
> >  }
> >
> >return ret;
> > @@ -350,9 +378,33 @@
> > if (fdh->delete_me)
> >continue;
> >
> > -if (fdh->gfd.revents & G_IO_IN) fdh->read_active = EINA_TRUE;
> > -if (fdh->gfd.revents & G_IO_OUT) fdh->write_active = EINA_TRUE;
> > -if (fdh->gfd.revents & G_IO_ERR) fdh->error_active = EINA_TRUE;
> > +if (fdh->gfd.revents & G_IO_IN)
> > +  {
> > + if (!fdh->read_active)
> > +   {
> > +  fdh->read_active = EINA_TRUE;
> > +  if ((!fdh->write_active) && (!fdh->error_active))
> > +fd_handlers_to_call =
> > eina_list_append(fd_handlers_to_call, fdh);
> > +   }
> > +  }
> > +if (fdh->gfd.revents & G_IO_OUT)
> > +  {
> > + if (!fdh->write_active)
> > +   {
> > +  fdh->write_active = EINA_TRUE;
> > +  if ((!fdh->read_active) && (!fdh->error_active))
> > +fd_handlers_to_call =
> > eina_list_append(fd_handlers_to_call, fdh);
> > +   }
> > +  }
> > +if (fdh->gfd.revents & G_IO_ERR)
> > +  {
> > + if (!fdh->error_active)
> > +   {
> > +  fdh->error_active = EINA_TRUE;
> > +  if ((!fdh->read_active) && (!fdh->write_active))
> > +fd_handlers_to_call =
> > eina_list_append(fd_handlers_to_call, fdh);
> > +   }
> > +  }
> > if (fdh->gfd.revents & (G_IO_IN|G_IO_OUT|G_IO_ERR)) ret++;
> >  }
> >
> > @@ -744,7 +796,7 @@
> >fdh->read_active = EINA_FALSE;
> >fdh->write_active = EINA_FALSE;
> >fdh->error_active = EINA_FALSE;
> > -   fdh->delete_me = 0;
> > +   fdh->delete_me = EINA_FALSE;
> >fdh->func = func;
> >fdh->data = (void *)data;
> >fdh-

Re: [E-devel] E SVN: discomfitor trunk/ecore/src/lib/ecore

2010-11-30 Thread Vincent Torri


On Tue, 30 Nov 2010, Enlightenment SVN wrote:

> Log:
> switch to EINA_BOOL values for delete_me, fix huge O(n) behavior in 
> _ecore_main_fd_handlers_call; all fd operations now should see an exponential 
> speed increase based on the number of fds that ecore is watching

next time, split the commit into several parts (eina bool, then the speed 
increase)

Vincent

>
>
> Author:   discomfitor
> Date: 2010-11-30 18:34:48 -0800 (Tue, 30 Nov 2010)
> New Revision: 55102
> Trac: http://trac.enlightenment.org/e/changeset/55102
>
> Modified:
>  trunk/ecore/src/lib/ecore/ecore_main.c
>
> Modified: trunk/ecore/src/lib/ecore/ecore_main.c
> ===
> --- trunk/ecore/src/lib/ecore/ecore_main.c2010-12-01 01:17:45 UTC (rev 
> 55101)
> +++ trunk/ecore/src/lib/ecore/ecore_main.c2010-12-01 02:34:48 UTC (rev 
> 55102)
> @@ -119,10 +119,14 @@
> static Eina_List*fd_handlers_with_buffer = NULL;
> static Eina_List*fd_handlers_to_delete = NULL;
>
> +static Eina_List*fd_handlers_to_call = NULL;
> +static Eina_List*fd_handlers_to_call_current;
> +static Eina_List*fd_handlers_to_call_current_next;
> +
> #ifdef _WIN32
> static Ecore_Win32_Handler *win32_handlers = NULL;
> static Ecore_Win32_Handler *win32_handler_current = NULL;
> -static int  win32_handlers_delete_me = 0;
> +static int  win32_handlers_delete_me = EINA_FALSE;
> #endif
>
> #ifdef _WIN32
> @@ -329,9 +333,33 @@
>  ERR("deleted fd in epoll");
>  continue;
>   }
> -if (ev[i].events & EPOLLIN) fdh->read_active = EINA_TRUE;
> -if (ev[i].events & EPOLLOUT) fdh->write_active = EINA_TRUE;
> -if (ev[i].events & EPOLLERR) fdh->error_active = EINA_TRUE;
> +if (ev[i].events & EPOLLIN)
> +  {
> + if (!fdh->read_active)
> +   {
> +  fdh->read_active = EINA_TRUE;
> +  if ((!fdh->write_active) && (!fdh->error_active))
> +fd_handlers_to_call = 
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (ev[i].events & EPOLLOUT)
> +  {
> + if (!fdh->write_active)
> +   {
> +  fdh->write_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->error_active))
> +fd_handlers_to_call = 
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (ev[i].events & EPOLLERR)
> +  {
> + if (!fdh->error_active)
> +   {
> +  fdh->error_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->write_active))
> +fd_handlers_to_call = 
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
>  }
>
>return ret;
> @@ -350,9 +378,33 @@
> if (fdh->delete_me)
>continue;
>
> -if (fdh->gfd.revents & G_IO_IN) fdh->read_active = EINA_TRUE;
> -if (fdh->gfd.revents & G_IO_OUT) fdh->write_active = EINA_TRUE;
> -if (fdh->gfd.revents & G_IO_ERR) fdh->error_active = EINA_TRUE;
> +if (fdh->gfd.revents & G_IO_IN)
> +  {
> + if (!fdh->read_active)
> +   {
> +  fdh->read_active = EINA_TRUE;
> +  if ((!fdh->write_active) && (!fdh->error_active))
> +fd_handlers_to_call = 
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (fdh->gfd.revents & G_IO_OUT)
> +  {
> + if (!fdh->write_active)
> +   {
> +  fdh->write_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->error_active))
> +fd_handlers_to_call = 
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (fdh->gfd.revents & G_IO_ERR)
> +  {
> + if (!fdh->error_active)
> +   {
> +  fdh->error_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->write_active))
> +fd_handlers_to_call = 
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> if (fdh->gfd.revents & (G_IO_IN|G_IO_OUT|G_IO_ERR)) ret++;
>  }
>
> @@ -744,7 +796,7 @@
>fdh->read_active = EINA_FALSE;
>fdh->write_active = EINA_FALSE;
>fdh->error_active = EINA_FALSE;
> -   fdh->delete_me = 0;
> +   fdh->delete_me = EINA_FALSE;
>fdh->func = func;
>fdh->data = (void *)data;
>fdh->buf_func = buf_func;
> @@ -769,7 +821,7 @@
>if (!wh) return NULL;
>ECORE_MAGIC_SET(wh, ECORE_MAGIC_WIN32_HANDLER);
>wh->h = (HANDLE)h;
> -   wh->delete_me = 0;
> +   wh->delete_me = EINA_FALSE;
>wh->func = func;
>wh->data = (void *)data;
>win32_handlers = (Ecore_Win32_Handler *)
> @@ -811,

Re: [E-devel] E SVN: discomfitor trunk/ecore/src/lib/ecore

2010-11-30 Thread Mike Blumenkrantz
On Tue, 30 Nov 2010 18:34:49 -0800
"Enlightenment SVN"  wrote:

> Log:
> switch to EINA_BOOL values for delete_me, fix huge O(n) behavior in
> _ecore_main_fd_handlers_call; all fd operations now should see an exponential
> speed increase based on the number of fds that ecore is watching 
> 
> Author:   discomfitor
> Date: 2010-11-30 18:34:48 -0800 (Tue, 30 Nov 2010)
> New Revision: 55102
> Trac: http://trac.enlightenment.org/e/changeset/55102
> 
> Modified:
>   trunk/ecore/src/lib/ecore/ecore_main.c 
> 
> Modified: trunk/ecore/src/lib/ecore/ecore_main.c
> ===
> --- trunk/ecore/src/lib/ecore/ecore_main.c2010-12-01 01:17:45 UTC
> (rev 55101) +++ trunk/ecore/src/lib/ecore/ecore_main.c2010-12-01
> 02:34:48 UTC (rev 55102) @@ -119,10 +119,14 @@
>  static Eina_List*fd_handlers_with_buffer = NULL;
>  static Eina_List*fd_handlers_to_delete = NULL;
>  
> +static Eina_List*fd_handlers_to_call = NULL;
> +static Eina_List*fd_handlers_to_call_current;
> +static Eina_List*fd_handlers_to_call_current_next;
> +
>  #ifdef _WIN32
>  static Ecore_Win32_Handler *win32_handlers = NULL;
>  static Ecore_Win32_Handler *win32_handler_current = NULL;
> -static int  win32_handlers_delete_me = 0;
> +static int  win32_handlers_delete_me = EINA_FALSE;
>  #endif
>  
>  #ifdef _WIN32
> @@ -329,9 +333,33 @@
>   ERR("deleted fd in epoll");
>   continue;
>}
> -if (ev[i].events & EPOLLIN) fdh->read_active = EINA_TRUE;
> -if (ev[i].events & EPOLLOUT) fdh->write_active = EINA_TRUE;
> -if (ev[i].events & EPOLLERR) fdh->error_active = EINA_TRUE;
> +if (ev[i].events & EPOLLIN)
> +  {
> + if (!fdh->read_active)
> +   {
> +  fdh->read_active = EINA_TRUE;
> +  if ((!fdh->write_active) && (!fdh->error_active))
> +fd_handlers_to_call =
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (ev[i].events & EPOLLOUT)
> +  {
> + if (!fdh->write_active)
> +   {
> +  fdh->write_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->error_active))
> +fd_handlers_to_call =
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (ev[i].events & EPOLLERR)
> +  {
> + if (!fdh->error_active)
> +   {
> +  fdh->error_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->write_active))
> +fd_handlers_to_call =
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
>   }
>  
> return ret;
> @@ -350,9 +378,33 @@
>  if (fdh->delete_me)
> continue;
>  
> -if (fdh->gfd.revents & G_IO_IN) fdh->read_active = EINA_TRUE;
> -if (fdh->gfd.revents & G_IO_OUT) fdh->write_active = EINA_TRUE;
> -if (fdh->gfd.revents & G_IO_ERR) fdh->error_active = EINA_TRUE;
> +if (fdh->gfd.revents & G_IO_IN)
> +  {
> + if (!fdh->read_active)
> +   {
> +  fdh->read_active = EINA_TRUE;
> +  if ((!fdh->write_active) && (!fdh->error_active))
> +fd_handlers_to_call =
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (fdh->gfd.revents & G_IO_OUT)
> +  {
> + if (!fdh->write_active)
> +   {
> +  fdh->write_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->error_active))
> +fd_handlers_to_call =
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
> +if (fdh->gfd.revents & G_IO_ERR)
> +  {
> + if (!fdh->error_active)
> +   {
> +  fdh->error_active = EINA_TRUE;
> +  if ((!fdh->read_active) && (!fdh->write_active))
> +fd_handlers_to_call =
> eina_list_append(fd_handlers_to_call, fdh);
> +   }
> +  }
>  if (fdh->gfd.revents & (G_IO_IN|G_IO_OUT|G_IO_ERR)) ret++;
>   }
>  
> @@ -744,7 +796,7 @@
> fdh->read_active = EINA_FALSE;
> fdh->write_active = EINA_FALSE;
> fdh->error_active = EINA_FALSE;
> -   fdh->delete_me = 0;
> +   fdh->delete_me = EINA_FALSE;
> fdh->func = func;
> fdh->data = (void *)data;
> fdh->buf_func = buf_func;
> @@ -769,7 +821,7 @@
> if (!wh) return NULL;
> ECORE_MAGIC_SET(wh, ECORE_MAGIC_WIN32_HANDLER);
> wh->h = (HANDLE)h;
> -   wh->delete_me = 0;
> +   wh->delete_me = EINA_FALSE;
> wh->func = func;
> wh->data = (void *)data;
> win32_handlers = (Ecore_Win32_Handler *)
> @@ -811,7 +863,7 @@
>   /* FIXME: should this

[E-devel] [Patch] elm_transit

2010-11-30 Thread ChunEon Park
Hi, This is Hermet

 

Because original elm_transit had event blocking for the objects in default, 

it had two APIs - elm_transit_event_block_disabled_set,
elm_transit_event_block_disabled_get.

 

But the concept is modified to no-event-blocking in default when it is
contributed. 

So the APIs was changed to elm_transit_event_block_set,
elm_transit_event_block_get also. 

 

Designing the transit for the temporary effect, I think that blocking-event
mode is more used then non-blocking generally. 

Additionally, a few applications are using original elm_transit already in
our platform, 

I hope to re-back if it does not really necessary. 

 

Could you please consider my proposal to re-back the concept?

 

I attached the small patch file. 

 

Thanks. 

Index: elm_transit.c
===
--- elm_transit.c   (revision 55099)
+++ elm_transit.c   (working copy)
@@ -282,6 +282,7 @@
EINA_MAGIC_SET(transit, ELM_TRANSIT_MAGIC);
 
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_LINEAR);
+elm_transit_event_block_disabled_set(transit, EINA_TRUE);
 
transit->time.duration = duration;
 
@@ -531,7 +532,7 @@
  * @ingroup Transit
  */
 EAPI void
-elm_transit_event_block_set(Elm_Transit *transit, Eina_Bool disabled)
+elm_transit_event_block_disabled_set(Elm_Transit *transit, Eina_Bool disabled)
 {
ELM_TRANSIT_CHECK_OR_RETURN(transit);
 
@@ -562,14 +563,14 @@
  *
  * @see elm_transit_event_block_set()
  *
- * @param transit The Transit object
+ * @param[in] transit The Transit object
  * @return EINA_TRUE, when event block is enabled. If @p transit is NULL
  * EINA_FALSE is returned
  *
  * @ingroup Transit
  */
 EAPI Eina_Bool
-elm_transit_event_block_get(const Elm_Transit *transit)
+elm_transit_event_block_disabled_get(const Elm_Transit *transit)
 {
ELM_TRANSIT_CHECK_OR_RETURN(transit, EINA_FALSE);
 
@@ -692,8 +693,8 @@
  * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
  * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
  *
- * @param transit The transit object.
- * @param tween_mode The tween type.
+ * @param[in] transit The transit object.
+ * @param[in] tween_mode The tween type.
  *
  * @ingroup Transit
  */
@@ -710,14 +711,14 @@
  *
  * @note @p transit can not be NULL
  *
- * @param transit The transit object.
+ * @param[in] transit The transit object.
  * @return The tween type. If @p transit is NULL
  * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
  *
  * @ingroup Transit
  */
 EAPI Elm_Transit_Tween_Mode
-elm_transit_tween_mode_get(Elm_Transit *transit)
+elm_transit_tween_mode_get(const Elm_Transit *transit)
 {
ELM_TRANSIT_CHECK_OR_RETURN(transit, ELM_TRANSIT_TWEEN_MODE_LINEAR);
 
Index: Elementary.h.in
===
--- Elementary.h.in (revision 55099)
+++ Elementary.h.in (working copy)
@@ -2422,15 +2423,15 @@
EAPI void   elm_transit_object_add(Elm_Transit *transit, 
Evas_Object *obj);
EAPI void   elm_transit_object_remove(Elm_Transit *transit, 
Evas_Object *obj);
EAPI const Eina_List   *elm_transit_objects_get(const Elm_Transit 
*transit);
-   EAPI void   elm_transit_event_block_set(Elm_Transit 
*transit, Eina_Bool disabled);
-   EAPI Eina_Bool  elm_transit_event_block_get(const Elm_Transit 
*transit);
+   EAPI void   
elm_transit_event_block_disabled_set(Elm_Transit *transit, Eina_Bool disabled);
+   EAPI Eina_Bool  elm_transit_event_block_disabled_get(const 
Elm_Transit *transit) EINA_ARG_NONNULL(1);
EAPI void   elm_transit_del_cb_set(Elm_Transit *transit, 
void (*cb)(void *data, Elm_Transit* transit), void *data);
EAPI void   elm_transit_auto_reverse_set(Elm_Transit 
*transit, Eina_Bool reverse);
EAPI Eina_Bool  elm_transit_auto_reverse_get(Elm_Transit 
*transit) EINA_ARG_NONNULL(1);
EAPI void   elm_transit_repeat_times_set(Elm_Transit 
*transit, int repeat);
EAPI intelm_transit_repeat_times_get(Elm_Transit 
*transit);
EAPI void   elm_transit_tween_mode_set(Elm_Transit 
*transit, Elm_Transit_Tween_Mode tween_mode);
-   EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(Elm_Transit 
*transit) EINA_ARG_NONNULL(1);
+   EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit 
*transit) EINA_ARG_NONNULL(1);
 
EAPI void   *elm_transit_effect_resizing_context_new(Evas_Coord 
from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h);
EAPI voidelm_transit_effect_resizing_op(void *data, Elm_Transit 
*transit, double progress);
--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eye

Re: [E-devel] [Patch] elm_animator

2010-11-30 Thread ChunEon Park
Sorry, missed the patch file.
Attached it again. 

Thanks. 

The Hermet 

-Original Message-
From: ChunEon Park [mailto:chuneon.p...@samsung.com] 
Sent: Wednesday, December 01, 2010 9:56 AM
To: 'enlightenment-devel@lists.sourceforge.net'
Subject: RE: [E-devel] [Patch] elm_animator 

Please look at this patch file. 
The previous may not be applied properly. 

Thanks. 

The Hermet

-Original Message-
From: ChunEon Park [mailto:chuneon.p...@samsung.com] 
Sent: Wednesday, December 01, 2010 9:18 AM
To: 'enlightenment-devel@lists.sourceforge.net'
Subject: [E-devel] [Patch] elm_animator 

Please check this small patch. 
Added one miner API. 

Thanks. 

The Hermet 

Index: elm_animator.c
===
--- elm_animator.c  (revision 55099)
+++ elm_animator.c  (working copy)
@@ -38,11 +38,11 @@
double duration;
unsigned int repeat_cnt;
unsigned int cur_repeat_cnt;
-   double (*curve_op) (double frame);
void (*animator_op) (void *data, Elm_Animator *animator, double frame);
void *animator_arg;
void (*completion_op) (void *data);
void *completion_arg;
+   Elm_Animator_Curve_Style curve_style;
Eina_Bool auto_reverse:1;
Eina_Bool on_animating:1;
 };
@@ -111,7 +111,24 @@
animator->cur_time = ecore_loop_time_get();
elapsed_time = animator->cur_time - animator->begin_time;
if (elapsed_time > animator->duration) elapsed_time = animator->duration;
-   frame = animator->curve_op(elapsed_time / animator->duration);
+
+   //Compute current frame
+   switch (animator->curve_style)
+ {
+   case ELM_ANIMATOR_CURVE_IN_OUT:
+ frame = _animator_curve_in_out(elapsed_time / animator->duration);
+ break;
+   case ELM_ANIMATOR_CURVE_IN:
+ frame = _animator_curve_in(elapsed_time / animator->duration);
+ break;
+   case ELM_ANIMATOR_CURVE_OUT:
+ frame = _animator_curve_out(elapsed_time / animator->duration);
+ break;
+   default:
+ frame = _animator_curve_linear(elapsed_time / animator->duration);
+ break;
+ }
+   
//Reverse?
if (animator->auto_reverse)
  {
@@ -178,6 +195,22 @@
 }
 
 /**
+ * Set the animation acceleration style.
+ *
+ * @param[in] animator Animator object
+ * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
+ *
+ * @ingroup Animator
+ */
+EAPI Elm_Animator_Curve_Style 
+elm_animator_curve_style_get(const Elm_Animator *animator)
+{
+   ELM_ANIMATOR_CHECK_OR_RETURN(animator, ELM_ANIMATOR_CURVE_LINEAR);
+  
+   return animator->curve_style;
+}
+
+/**
  * Set auto reverse function.
  *
  * @param[in] animator Animator object
@@ -212,24 +245,8 @@
 Elm_Animator_Curve_Style cs)
 {
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
-   switch (cs)
- {
- case ELM_ANIMATOR_CURVE_LINEAR:
-   animator->curve_op = _animator_curve_linear;
-   break;
- case ELM_ANIMATOR_CURVE_IN_OUT:
-   animator->curve_op = _animator_curve_in_out;
-   break;
- case ELM_ANIMATOR_CURVE_IN:
-   animator->curve_op = _animator_curve_in;
-   break;
- case ELM_ANIMATOR_CURVE_OUT:
-   animator->curve_op = _animator_curve_out;
-   break;
- default:
-   animator->curve_op = _animator_curve_linear;
-   break;
- }
+
+   animator->curve_style = cs;
 }
 
 /**
Index: Elementary.h.in
===
--- Elementary.h.in (revision 55099)
+++ Elementary.h.in (working copy)
@@ -2263,21 +2263,22 @@
*/
typedef void (*Elm_Animator_Completion_Cb) (void *data);
 
-   EAPI Elm_Animator* elm_animator_add(Evas_Object *parent);
-   EAPI void  elm_animator_del(Elm_Animator *animator);
-   EAPI void  elm_animator_duration_set(Elm_Animator *animator, double 
duration);
-   EAPI void  elm_animator_operation_callback_set(Elm_Animator 
*animator, Elm_Animator_Operation_Cb func, void *data);
-   EAPI void  elm_animator_completion_callback_set(Elm_Animator 
*animator, Elm_Animator_Completion_Cb func, void *data);
-   EAPI void  elm_animator_stop(Elm_Animator *animator);
-   EAPI void  elm_animator_repeat_set(Elm_Animator *animator, unsigned 
int repeat_cnt);
-   EAPI void  elm_animator_animate(Elm_Animator *animator);
-   EAPI void  elm_animator_curve_style_set(Elm_Animator *animator, 
Elm_Animator_Curve_Style cs);
-   EAPI void  elm_animator_auto_reverse_set(Elm_Animator *animator, 
Eina_Bool reverse);
-   EAPI Eina_Bool elm_animator_auto_reverse_get(const Elm_Animator 
*animator);
-   EAPI Eina_Bool elm_animator_operating_get(const Elm_Animator *animator);
-   EAPI unsigned int  elm_animator_repeat_get(const Elm_Animator *animator);
-   EAPI void  elm_animator_pause(Elm_Animator *animator);
-   EAPI void  elm_animator_resume(Elm_Animator *animator);
+   EAPI Elm_An

Re: [E-devel] Simpler animator.

2010-11-30 Thread Eduardo Felipe
Well, thanks anyway.

Eduardo.

On Tue, Nov 30, 2010 at 10:46 PM, Gustavo Sverzut Barbieri
 wrote:
> On Tuesday, November 30, 2010, Eduardo Felipe  
> wrote:
>> Sorry, no elm_* for me.
>>
>> Were I work we are restricted to Edje, Ecore, Evas, *. No Elementary. :(
>
> To bad, you're loosing great bits. But that code is not dependent
> on other elm bits, just copy it over. It will not be replicated at
> other efl libs.
>
>
>> On Tue, Nov 30, 2010 at 8:49 PM, Gustavo Sverzut Barbieri
>>  wrote:
>>> On Tue, Nov 30, 2010 at 8:20 PM, Eduardo Felipe
>>>  wrote:
 Hi folks,

 I'm starting a thread to discuss the idea of a simpler ecore_animator.
 My idea is to have a time based API that just calls a callback over a
 period of time and pass as a pass a float from 0.0 to 1.0 to the it,
 so one could animate things like "turn white in two seconds" easier.
 I know it's completely possible to do this, and quite easy actually,
 but I keep having to implement this over and over to animate little
 like a clipper's color and I'm beginning to wonder if this should be
 in 1.1.
 Mind you that raster wrote such a thing for his edje_lua2 API (he
 called it "transition" to match EDC) and I think such a transition API
 would be nice. What do you think?
>>>
>>> You want elm_transit ;-)
>>>
>>> --
>>> Gustavo Sverzut Barbieri
>>> http://profusion.mobi embedded systems
>>> --
>>> MSN: barbi...@gmail.com
>>> Skype: gsbarbieri
>>> Mobile: +55 (19) 9225-2202
>>>
>>
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>

--
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


Re: [E-devel] [Patch] elm_animator

2010-11-30 Thread ChunEon Park
Please look at this patch file. 
The previous may not be applied properly. 

Thanks. 

The Hermet

-Original Message-
From: ChunEon Park [mailto:chuneon.p...@samsung.com] 
Sent: Wednesday, December 01, 2010 9:18 AM
To: 'enlightenment-devel@lists.sourceforge.net'
Subject: [E-devel] [Patch] elm_animator 

Please check this small patch. 
Added one miner API. 

Thanks. 

The Hermet 

--
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


Re: [E-devel] Simpler animator.

2010-11-30 Thread Gustavo Sverzut Barbieri
On Tuesday, November 30, 2010, Eduardo Felipe  wrote:
> Sorry, no elm_* for me.
>
> Were I work we are restricted to Edje, Ecore, Evas, *. No Elementary. :(

To bad, you're loosing great bits. But that code is not dependent
on other elm bits, just copy it over. It will not be replicated at
other efl libs.


> On Tue, Nov 30, 2010 at 8:49 PM, Gustavo Sverzut Barbieri
>  wrote:
>> On Tue, Nov 30, 2010 at 8:20 PM, Eduardo Felipe
>>  wrote:
>>> Hi folks,
>>>
>>> I'm starting a thread to discuss the idea of a simpler ecore_animator.
>>> My idea is to have a time based API that just calls a callback over a
>>> period of time and pass as a pass a float from 0.0 to 1.0 to the it,
>>> so one could animate things like "turn white in two seconds" easier.
>>> I know it's completely possible to do this, and quite easy actually,
>>> but I keep having to implement this over and over to animate little
>>> like a clipper's color and I'm beginning to wonder if this should be
>>> in 1.1.
>>> Mind you that raster wrote such a thing for his edje_lua2 API (he
>>> called it "transition" to match EDC) and I think such a transition API
>>> would be nice. What do you think?
>>
>> You want elm_transit ;-)
>>
>> --
>> Gustavo Sverzut Barbieri
>> http://profusion.mobi embedded systems
>> --
>> MSN: barbi...@gmail.com
>> Skype: gsbarbieri
>> Mobile: +55 (19) 9225-2202
>>
>

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
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


Re: [E-devel] Simpler animator.

2010-11-30 Thread Eduardo Felipe
Sorry, no elm_* for me.

Were I work we are restricted to Edje, Ecore, Evas, *. No Elementary. :(

On Tue, Nov 30, 2010 at 8:49 PM, Gustavo Sverzut Barbieri
 wrote:
> On Tue, Nov 30, 2010 at 8:20 PM, Eduardo Felipe
>  wrote:
>> Hi folks,
>>
>> I'm starting a thread to discuss the idea of a simpler ecore_animator.
>> My idea is to have a time based API that just calls a callback over a
>> period of time and pass as a pass a float from 0.0 to 1.0 to the it,
>> so one could animate things like "turn white in two seconds" easier.
>> I know it's completely possible to do this, and quite easy actually,
>> but I keep having to implement this over and over to animate little
>> like a clipper's color and I'm beginning to wonder if this should be
>> in 1.1.
>> Mind you that raster wrote such a thing for his edje_lua2 API (he
>> called it "transition" to match EDC) and I think such a transition API
>> would be nice. What do you think?
>
> You want elm_transit ;-)
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>

--
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


Re: [E-devel] E SVN: bdilly trunk/TMP/st/elementary/src/lib

2010-11-30 Thread Gustavo Sverzut Barbieri
On Tuesday, November 30, 2010, Daniel Juyung Seo  wrote:
>>
>>  By: WooHyun Jung 
>>
>
> k-s: see some one else is motivated :)

Yeah! Keep rocking!

>
>
> On Wed, Dec 1, 2010 at 3:53 AM, Enlightenment SVN
>  wrote:
>> Log:
>> Improve elm_colorselector readability and fix clicked entry sig emission
>>
>>  The reason for modifying about elm_colorselector can be "readability".
>>  Each bar in the colorselector has its own color type (like hue, saturation,
>>  ...)
>>  So I thought it will be better, if I added enum for each color type.
>>
>>  And, for about elm_entry.c , I thought that "SIG_CLICKED" was wrongly
>>  emitted (by "MOUSE_UP" event).
>>  I deleted mouse_up callback function (as you advised),
>>  because this function didn't do anything by my modification.
>>
>>  By: WooHyun Jung 
>>
>>
>> Author:       bdilly
>> Date:         2010-11-30 10:53:52 -0800 (Tue, 30 Nov 2010)
>> New Revision: 55097
>> Trac:         http://trac.enlightenment.org/e/changeset/55097
>>
>> Modified:
>>  trunk/TMP/st/elementary/src/lib/elm_colorselector.c 
>> trunk/TMP/st/elementary/src/lib/elm_entry.c
>>
>> Modified: trunk/TMP/st/elementary/src/lib/elm_colorselector.c
>> ===
>> --- trunk/TMP/st/elementary/src/lib/elm_colorselector.c 2010-11-30 18:51:16 
>> UTC (rev 55096)
>> +++ trunk/TMP/st/elementary/src/lib/elm_colorselector.c 2010-11-30 18:53:52 
>> UTC (rev 55097)
>> @@ -14,8 +14,22 @@
>>  #define LIG_STEP 256.0
>>  #define ALP_STEP 256.0
>>
>> +typedef enum _Button_State
>> +{
>> +   BUTTON_RELEASED,
>> +   L_BUTTON_PRESSED,
>> +   R_BUTTON_PRESSED
>> +} Button_State;
>> +
>> +typedef enum _Color_Type
>> +{
>> +   HUE,
>> +   SATURATION,
>> +   LIGHTNESS,
>> +   ALPHA
>> +} Color_Type;
>> +
>>  typedef struct _Colorselector_Data Colorselector_Data;
>> -
>>  struct _Colorselector_Data
>>  {
>>    Evas_Object *parent;
>> @@ -26,12 +40,11 @@
>>    Evas_Object *bg_rect;
>>    Evas_Object *arrow;
>>    Evas_Object *touch_area;
>> -   int colorselector_num;
>> -   int button_state;
>> +   Color_Type color_type;
>> +   Button_State button_state;
>>  };
>>
>>  typedef struct _Widget_Data Widget_Data;
>> -
>>  struct _Widget_Data
>>  {
>>    Evas_Object *base;
>> @@ -46,13 +59,6 @@
>>    Ecore_Timer *mv_timer;
>>  };
>>
>> -typedef enum
>> -{
>> -   BUTTON_RELEASED,
>> -   L_BUTTON_PRESSED,
>> -   R_BUTTON_PRESSED
>> -} Button_State;
>> -
>>  static const char *widtype = NULL;
>>
>>  static void _del_hook(Evas_Object *obj);
>> @@ -317,9 +323,9 @@
>>    Widget_Data *wd = elm_widget_data_get(cp->parent);
>>    double one_six = 1.0 / 6.0;
>>
>> -   switch (cp->colorselector_num)
>> +   switch (cp->color_type)
>>      {
>> -     case 0:
>> +     case HUE:
>>         wd->h = 360.0 * x;
>>
>>         if (x < one_six)
>> @@ -377,26 +383,25 @@
>>                               wd->a);
>>         break;
>>
>> -     case 1:
>> +     case SATURATION:
>>         wd->s = 1.0 - x;
>>         _color_with_saturation(wd);
>>         evas_object_color_set(wd->cp[1]->arrow, wd->sr, wd->sg, wd->sb, 255);
>>         break;
>>
>> -     case 2:
>> +     case LIGHTNESS:
>>         wd->l = x;
>>         _color_with_lightness(wd);
>>         evas_object_color_set(wd->cp[2]->arrow, wd->lr, wd->lg, wd->lb, 255);
>>         break;
>>
>> -     case 3:
>> +     case ALPHA:
>>         wd->a = 255.0 * x;
>>         evas_object_color_set(wd->cp[3]->arrow, wd->er, wd->eg, wd->eb, 
>> wd->a);
>>         break;
>>
>>      default:
>>         break;
>> -
>>      }
>>    _hsl_to_rgb(wd);
>>  }
>> @@ -502,10 +507,23 @@
>>                           "left_button");
>>    edje_object_part_drag_value_get(cp->colorbar, "elm.arrow", &x, &y);
>>
>> -   if (!cp->colorselector_num) x -= 1.0 / HUE_STEP;
>> -   else if (cp->colorselector_num == 1) x -= 1.0 / SAT_STEP;
>> -   else if (cp->colorselector_num == 2) x -= 1.0 / LIG_STEP;
>> -   else if (cp->colorselector_num == 3) x -= 1.0 / ALP_STEP;
>> +   switch(cp->color_type)
>> +     {
>> +      case HUE :
>> +         x -= 1.0 / HUE_STEP;
>> +         break;
>> +      case SATURATION :
>> +         x -= 1.0 / SAT_STEP;
>> +         break;
>> +      case LIGHTNESS :
>> +         x -= 1.0 / LIG_STEP;
>> +         break;
>> +      case ALPHA :
>> +         x -= 1.0 / ALP_STEP;
>> +         break;
>> +      default :
>> +         break;
>> +     }
>>
>>    if (x < 0.0) x = 0.0;
>>
>> @@ -528,10 +546,23 @@
>>                           "right_button");
>>    edje_object_part_drag_value_get(cp->colorbar, "elm.arrow", &x, &y);
>>
>> -   if (!cp->colorselector_num) x += 1.0 / HUE_STEP;
>> -   else if (cp->colorselector_num == 1) x += 1.0 / SAT_STEP;
>> -   else if (cp->colorselector_num == 2) x += 1.0 / LIG_STEP;
>> -   else if (cp->colorselector_num == 3) x += 1.0 / ALP_STEP;
>> +   switch(cp->color_type)
>> +     {
>> +      case HUE :
>> +         x += 1.0 / HUE_STEP;
>> +         break;
>> +      case SATURATION :
>> +         x += 1.0 / SAT_STEP;
>> +         break;
>

[E-devel] [Patch] elm_animator

2010-11-30 Thread ChunEon Park
Please check this small patch. 
Added one miner API. 

Thanks. 

The Hermet 

Index: elm_animator.c
===
--- elm_animator.c  (revision 55099)
+++ elm_animator.c  (working copy)
@@ -38,11 +38,11 @@
double duration;
unsigned int repeat_cnt;
unsigned int cur_repeat_cnt;
-   double (*curve_op) (double frame);
void (*animator_op) (void *data, Elm_Animator *animator, double frame);
void *animator_arg;
void (*completion_op) (void *data);
void *completion_arg;
+   Elm_Animator_Curve_Style curve_style;
Eina_Bool auto_reverse:1;
Eina_Bool on_animating:1;
 };
@@ -111,7 +111,24 @@
animator->cur_time = ecore_loop_time_get();
elapsed_time = animator->cur_time - animator->begin_time;
if (elapsed_time > animator->duration) elapsed_time = animator->duration;
-   frame = animator->curve_op(elapsed_time / animator->duration);
+
+   //Compute current frame
+   switch (animator->curve_style)
+ {
+   case ELM_ANIMATOR_CURVE_IN_OUT:
+ frame = _animator_curve_in_out(elapsed_time / animator->duration);
+ break;
+   case ELM_ANIMATOR_CURVE_IN:
+ frame = _animator_curve_in(elapsed_time / animator->duration);
+ break;
+   case ELM_ANIMATOR_CURVE_OUT:
+ frame = _animator_curve_out(elapsed_time / animator->duration);
+ break;
+   default:
+ frame = _animator_curve_linear(elapsed_time / animator->duration);
+ break;
+ }
+   
//Reverse?
if (animator->auto_reverse)
  {
@@ -178,6 +195,22 @@
 }
 
 /**
+ * Set the animation acceleration style.
+ *
+ * @param[in] animator Animator object
+ * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
+ *
+ * @ingroup Animator
+ */
+EAPI Elm_Animator_Curve_Style 
+elm_animator_curve_style_get(const Elm_Animator *animator)
+{
+   ELM_ANIMATOR_CHECK_OR_RETURN(animator, ELM_ANIMATOR_CURVE_LINEAR);
+  
+   return animator->curve_style;
+}
+
+/**
  * Set auto reverse function.
  *
  * @param[in] animator Animator object
@@ -212,24 +245,8 @@
 Elm_Animator_Curve_Style cs)
 {
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
-   switch (cs)
- {
- case ELM_ANIMATOR_CURVE_LINEAR:
-   animator->curve_op = _animator_curve_linear;
-   break;
- case ELM_ANIMATOR_CURVE_IN_OUT:
-   animator->curve_op = _animator_curve_in_out;
-   break;
- case ELM_ANIMATOR_CURVE_IN:
-   animator->curve_op = _animator_curve_in;
-   break;
- case ELM_ANIMATOR_CURVE_OUT:
-   animator->curve_op = _animator_curve_out;
-   break;
- default:
-   animator->curve_op = _animator_curve_linear;
-   break;
- }
+
+   animator->curve_style = cs;
 }
 
 /**
Index: Elementary.h.in
===
--- Elementary.h.in (revision 55099)
+++ Elementary.h.in (working copy)
@@ -2263,21 +2263,22 @@
*/
typedef void (*Elm_Animator_Completion_Cb) (void *data);
 
-   EAPI Elm_Animator* elm_animator_add(Evas_Object *parent);
-   EAPI void  elm_animator_del(Elm_Animator *animator);
-   EAPI void  elm_animator_duration_set(Elm_Animator *animator, double 
duration);
-   EAPI void  elm_animator_operation_callback_set(Elm_Animator 
*animator, Elm_Animator_Operation_Cb func, void *data);
-   EAPI void  elm_animator_completion_callback_set(Elm_Animator 
*animator, Elm_Animator_Completion_Cb func, void *data);
-   EAPI void  elm_animator_stop(Elm_Animator *animator);
-   EAPI void  elm_animator_repeat_set(Elm_Animator *animator, unsigned 
int repeat_cnt);
-   EAPI void  elm_animator_animate(Elm_Animator *animator);
-   EAPI void  elm_animator_curve_style_set(Elm_Animator *animator, 
Elm_Animator_Curve_Style cs);
-   EAPI void  elm_animator_auto_reverse_set(Elm_Animator *animator, 
Eina_Bool reverse);
-   EAPI Eina_Bool elm_animator_auto_reverse_get(const Elm_Animator 
*animator);
-   EAPI Eina_Bool elm_animator_operating_get(const Elm_Animator *animator);
-   EAPI unsigned int  elm_animator_repeat_get(const Elm_Animator *animator);
-   EAPI void  elm_animator_pause(Elm_Animator *animator);
-   EAPI void  elm_animator_resume(Elm_Animator *animator);
+   EAPI Elm_Animator*elm_animator_add(Evas_Object *parent);
+   EAPI void elm_animator_del(Elm_Animator *animator);
+   EAPI void elm_animator_duration_set(Elm_Animator 
*animator, double duration);
+   EAPI void 
elm_animator_operation_callback_set(Elm_Animator *animator, 
Elm_Animator_Operation_Cb func, void *data);
+   EAPI void 
elm_animator_completion_callback_set(Elm_Animator *animator, 
Elm_Animator_Completion_Cb func, void *data);
+   EAPI void elm_animator_stop(Elm_Animator *animator);
+   EAP

Re: [E-devel] E SVN: bdilly trunk/TMP/st/elementary/src/lib

2010-11-30 Thread Daniel Juyung Seo
>
>  By: WooHyun Jung 
>

k-s: see some one else is motivated :)


On Wed, Dec 1, 2010 at 3:53 AM, Enlightenment SVN
 wrote:
> Log:
> Improve elm_colorselector readability and fix clicked entry sig emission
>
>  The reason for modifying about elm_colorselector can be "readability".
>  Each bar in the colorselector has its own color type (like hue, saturation,
>  ...)
>  So I thought it will be better, if I added enum for each color type.
>
>  And, for about elm_entry.c , I thought that "SIG_CLICKED" was wrongly
>  emitted (by "MOUSE_UP" event).
>  I deleted mouse_up callback function (as you advised),
>  because this function didn't do anything by my modification.
>
>  By: WooHyun Jung 
>
>
> Author:       bdilly
> Date:         2010-11-30 10:53:52 -0800 (Tue, 30 Nov 2010)
> New Revision: 55097
> Trac:         http://trac.enlightenment.org/e/changeset/55097
>
> Modified:
>  trunk/TMP/st/elementary/src/lib/elm_colorselector.c 
> trunk/TMP/st/elementary/src/lib/elm_entry.c
>
> Modified: trunk/TMP/st/elementary/src/lib/elm_colorselector.c
> ===
> --- trunk/TMP/st/elementary/src/lib/elm_colorselector.c 2010-11-30 18:51:16 
> UTC (rev 55096)
> +++ trunk/TMP/st/elementary/src/lib/elm_colorselector.c 2010-11-30 18:53:52 
> UTC (rev 55097)
> @@ -14,8 +14,22 @@
>  #define LIG_STEP 256.0
>  #define ALP_STEP 256.0
>
> +typedef enum _Button_State
> +{
> +   BUTTON_RELEASED,
> +   L_BUTTON_PRESSED,
> +   R_BUTTON_PRESSED
> +} Button_State;
> +
> +typedef enum _Color_Type
> +{
> +   HUE,
> +   SATURATION,
> +   LIGHTNESS,
> +   ALPHA
> +} Color_Type;
> +
>  typedef struct _Colorselector_Data Colorselector_Data;
> -
>  struct _Colorselector_Data
>  {
>    Evas_Object *parent;
> @@ -26,12 +40,11 @@
>    Evas_Object *bg_rect;
>    Evas_Object *arrow;
>    Evas_Object *touch_area;
> -   int colorselector_num;
> -   int button_state;
> +   Color_Type color_type;
> +   Button_State button_state;
>  };
>
>  typedef struct _Widget_Data Widget_Data;
> -
>  struct _Widget_Data
>  {
>    Evas_Object *base;
> @@ -46,13 +59,6 @@
>    Ecore_Timer *mv_timer;
>  };
>
> -typedef enum
> -{
> -   BUTTON_RELEASED,
> -   L_BUTTON_PRESSED,
> -   R_BUTTON_PRESSED
> -} Button_State;
> -
>  static const char *widtype = NULL;
>
>  static void _del_hook(Evas_Object *obj);
> @@ -317,9 +323,9 @@
>    Widget_Data *wd = elm_widget_data_get(cp->parent);
>    double one_six = 1.0 / 6.0;
>
> -   switch (cp->colorselector_num)
> +   switch (cp->color_type)
>      {
> -     case 0:
> +     case HUE:
>         wd->h = 360.0 * x;
>
>         if (x < one_six)
> @@ -377,26 +383,25 @@
>                               wd->a);
>         break;
>
> -     case 1:
> +     case SATURATION:
>         wd->s = 1.0 - x;
>         _color_with_saturation(wd);
>         evas_object_color_set(wd->cp[1]->arrow, wd->sr, wd->sg, wd->sb, 255);
>         break;
>
> -     case 2:
> +     case LIGHTNESS:
>         wd->l = x;
>         _color_with_lightness(wd);
>         evas_object_color_set(wd->cp[2]->arrow, wd->lr, wd->lg, wd->lb, 255);
>         break;
>
> -     case 3:
> +     case ALPHA:
>         wd->a = 255.0 * x;
>         evas_object_color_set(wd->cp[3]->arrow, wd->er, wd->eg, wd->eb, 
> wd->a);
>         break;
>
>      default:
>         break;
> -
>      }
>    _hsl_to_rgb(wd);
>  }
> @@ -502,10 +507,23 @@
>                           "left_button");
>    edje_object_part_drag_value_get(cp->colorbar, "elm.arrow", &x, &y);
>
> -   if (!cp->colorselector_num) x -= 1.0 / HUE_STEP;
> -   else if (cp->colorselector_num == 1) x -= 1.0 / SAT_STEP;
> -   else if (cp->colorselector_num == 2) x -= 1.0 / LIG_STEP;
> -   else if (cp->colorselector_num == 3) x -= 1.0 / ALP_STEP;
> +   switch(cp->color_type)
> +     {
> +      case HUE :
> +         x -= 1.0 / HUE_STEP;
> +         break;
> +      case SATURATION :
> +         x -= 1.0 / SAT_STEP;
> +         break;
> +      case LIGHTNESS :
> +         x -= 1.0 / LIG_STEP;
> +         break;
> +      case ALPHA :
> +         x -= 1.0 / ALP_STEP;
> +         break;
> +      default :
> +         break;
> +     }
>
>    if (x < 0.0) x = 0.0;
>
> @@ -528,10 +546,23 @@
>                           "right_button");
>    edje_object_part_drag_value_get(cp->colorbar, "elm.arrow", &x, &y);
>
> -   if (!cp->colorselector_num) x += 1.0 / HUE_STEP;
> -   else if (cp->colorselector_num == 1) x += 1.0 / SAT_STEP;
> -   else if (cp->colorselector_num == 2) x += 1.0 / LIG_STEP;
> -   else if (cp->colorselector_num == 3) x += 1.0 / ALP_STEP;
> +   switch(cp->color_type)
> +     {
> +      case HUE :
> +         x += 1.0 / HUE_STEP;
> +         break;
> +      case SATURATION :
> +         x += 1.0 / SAT_STEP;
> +         break;
> +      case LIGHTNESS :
> +         x += 1.0 / LIG_STEP;
> +         break;
> +      case ALPHA :
> +         x += 1.0 / ALP_STEP;
> +         break;
> +      default :
> +         break;
> +     }
>
>    if (x > 1.0) x = 1.0;
>
> @@ -602,11 +633,25 @@
>    for

Re: [E-devel] [Patch] elm_genlist and elm_list patch.

2010-11-30 Thread Daniel Juyung Seo
I attached a patch file again.

Thanks.
Daniel Juyung Seo.

-Original Message-
From: Daniel Juyung Seo [mailto:seojuyu...@gmail.com] 
Sent: Wednesday, December 01, 2010 3:35 AM
To: enlightenment-devel@lists.sourceforge.net
Subject: [E-devel] [Patch] elm_genlist and elm_list patch.

Dear all, I have a patch for some issues.
Anybody can review this patch and apply this to upstream?

[Genlist]
1. fixed elm_genlist_item_display_only_set() API bug.
  "elm,state,selected" signal should not be emitted when display_only is
set.
  display_only was not set properly when it->block did not exist.

2. Add a macro for SWIPE_TIMEOUT
   Instead of using constant "0.4" for swipe timer in the middle of code, I
added a macro SWIPE_TIMEOUT.

3. Indentation and space fix.
   I fixed indentations for item cache and some other lines.
   I removed some unnecessary spaces.

[List]
1. Add macros for SWIPE_TIMEOUT and LONGPRESS_TIMEOUT
Instead of using constants in the middle of code, I added macros.

Thanks.
Daniel Juyung Seo.
Index: elm_genlist.c
===
--- elm_genlist.c   (revision 55090)
+++ elm_genlist.c   (working copy)
@@ -3,6 +3,7 @@
 #include "elm_priv.h"
 
 #define SWIPE_MOVES 12
+#define SWIPE_TIMEOUT 0.4
 #define MAX_ITEMS_PER_BLOCK 32
 #define LONGPRESS_TIMEOUT 1.0
 
@@ -776,7 +777,7 @@ static void
 _item_hilight(Elm_Genlist_Item *it)
 {
const char *selectraise;
-   if ((it->wd->no_select) || (it->delete_me) || (it->hilighted)) return;
+   if ((it->wd->no_select) || (it->delete_me) || (it->hilighted) || 
(it->display_only)) return;
edje_object_signal_emit(it->base.view, "elm,state,selected", "elm");
selectraise = edje_object_data_get(it->base.view, "selectraise");
if ((selectraise) && (!strcmp(selectraise, "on")))
@@ -981,7 +982,7 @@ _mouse_move(void *data, Evas *evas __UNUSED__, Eva
 return;
  }
if (!it->display_only)
- elm_coords_finger_size_adjust(1, &minw, 1, &minh);
+  elm_coords_finger_size_adjust(1, &minw, 1, &minh);
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
x = ev->cur.canvas.x - x;
y = ev->cur.canvas.y - y;
@@ -1104,7 +1105,7 @@ _mouse_down(void *data, Evas *evas __UNUSED__, Eva
  evas_object_smart_callback_call(it->base.widget, "clicked", it);
if (it->long_timer) ecore_timer_del(it->long_timer);
if (it->swipe_timer) ecore_timer_del(it->swipe_timer);
-   it->swipe_timer = ecore_timer_add(0.4, _swipe_cancel, it);
+   it->swipe_timer = ecore_timer_add(SWIPE_TIMEOUT, _swipe_cancel, it);
if (it->realized)
  it->long_timer = ecore_timer_add(it->wd->longpress_timeout, _long_press, 
it);
else
@@ -1229,123 +1230,122 @@ _signal_contract(void *data, Evas_Object *obj __UN
  evas_object_smart_callback_call(it->base.widget, "contract,request", it);
 }
 
-
 static void
 _item_cache_clean(Widget_Data *wd)
 {
-  while ((wd->item_cache) && (wd->item_cache_count > wd->item_cache_max))
-{
-  Item_Cache *itc;
-  
-  itc = EINA_INLIST_CONTAINER_GET(wd->item_cache->last, Item_Cache);
-  wd->item_cache = eina_inlist_remove(wd->item_cache,
-  wd->item_cache->last);
-  wd->item_cache_count--;
-  if (itc->spacer) evas_object_del(itc->spacer);
-  if (itc->base_view) evas_object_del(itc->base_view);
-  if (itc->item_style) eina_stringshare_del(itc->item_style);
-  free(itc);
-}
+   while ((wd->item_cache) && (wd->item_cache_count > wd->item_cache_max))
+ {
+Item_Cache *itc;
+
+itc = EINA_INLIST_CONTAINER_GET(wd->item_cache->last, Item_Cache);
+wd->item_cache = eina_inlist_remove(wd->item_cache,
+wd->item_cache->last);
+wd->item_cache_count--;
+if (itc->spacer) evas_object_del(itc->spacer);
+if (itc->base_view) evas_object_del(itc->base_view);
+if (itc->item_style) eina_stringshare_del(itc->item_style);
+free(itc);
+ }
 }
 
 static void
 _item_cache_zero(Widget_Data *wd)
 {
-  int pmax = wd->item_cache_max;
-  wd->item_cache_max = 0;
-  _item_cache_clean(wd);
-  wd->item_cache_max = pmax;
+   int pmax = wd->item_cache_max;
+   wd->item_cache_max = 0;
+   _item_cache_clean(wd);
+   wd->item_cache_max = pmax;
 }
 
 static void
 _item_cache_add(Elm_Genlist_Item *it)
 {
-  Item_Cache *itc;
+   Item_Cache *itc;
 
-  if (it->wd->item_cache_max <= 0)
-{
-  evas_object_del(it->base.view);
-  it->base.view = NULL;
-  evas_object_del(it->spacer);
-  it->spacer = NULL;
-  return;
-}
-  
-  it->wd->item_cache_count++;
-  itc = calloc(1, sizeof(Item_Cache));
-  it->wd->item_cache = eina_inlist_prepend(it->wd->item_cache, 
EINA_INLIST_GET(itc));
-  itc->spacer = it->spacer;
-  it->spacer = NULL;
-  itc->base_view = it->base.view;
-  it->base.view = NULL;
-  evas_object_hide(itc->base_view);
-  evas_object_move(itc->base_view, -, -);
-  itc->item_style = e

Re: [E-devel] Simpler animator.

2010-11-30 Thread Gustavo Sverzut Barbieri
On Tue, Nov 30, 2010 at 8:20 PM, Eduardo Felipe
 wrote:
> Hi folks,
>
> I'm starting a thread to discuss the idea of a simpler ecore_animator.
> My idea is to have a time based API that just calls a callback over a
> period of time and pass as a pass a float from 0.0 to 1.0 to the it,
> so one could animate things like "turn white in two seconds" easier.
> I know it's completely possible to do this, and quite easy actually,
> but I keep having to implement this over and over to animate little
> like a clipper's color and I'm beginning to wonder if this should be
> in 1.1.
> Mind you that raster wrote such a thing for his edje_lua2 API (he
> called it "transition" to match EDC) and I think such a transition API
> would be nice. What do you think?

You want elm_transit ;-)

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
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


[E-devel] Simpler animator.

2010-11-30 Thread Eduardo Felipe
Hi folks,

I'm starting a thread to discuss the idea of a simpler ecore_animator.
My idea is to have a time based API that just calls a callback over a
period of time and pass as a pass a float from 0.0 to 1.0 to the it,
so one could animate things like "turn white in two seconds" easier.
I know it's completely possible to do this, and quite easy actually,
but I keep having to implement this over and over to animate little
like a clipper's color and I'm beginning to wonder if this should be
in 1.1.
Mind you that raster wrote such a thing for his edje_lua2 API (he
called it "transition" to match EDC) and I think such a transition API
would be nice. What do you think?

Best regards,

Eduardo Felipe.

--
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


[E-devel] Problem to run E17 in an ARM Cortex-A8

2010-11-30 Thread Fabiano Fidêncio
Howdy!

I'm trying to have fun with a little board and E17 running Illume.
However, in the wizard to select a profile, I'm having a segfault
in an ARM Cortex-A8.

Could someone take a look?

The gdb's backtrace is that: http://pastebin.com/tPLR6BAN

BR,
-- 
Fabiano Fidêncio
ProFUSION embedded systems
http://www.profusion.mobi

--
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


Re: [E-devel] [PATCH] Some modifications about elm_colorselector.c and elm_entry.c

2010-11-30 Thread Bruno Dilly
On Tue, Nov 30, 2010 at 8:43 AM, WooHyun Jung  wrote:
> Hello ~
> I modified my patch.
>
> The reason for modifying about elm_colorselector can be "readability".
> Each bar in the colorselector has its own color type (like hue, saturation,
> ...)
> So I thought it will be better, if I added enum for each color type.
>
> And about elm_entry,
> I deleted mouse_up callback function (as you advised),
> because this function didn't do anything by my modification.
>

OK, then. Applied on svn.

Thank you.

> Thanks.
>
> -Original Message-
> From: Bruno Dilly [mailto:bdi...@profusion.mobi]
> Sent: Wednesday, November 24, 2010 11:35 PM
> To: WooHyun Jung
> Cc: enlightenment-devel@lists.sourceforge.net
> Subject: Re: [E-devel] [PATCH] Some modifications about elm_colorselector.c
> and elm_entry.c
>
> On Wed, Nov 24, 2010 at 11:44 AM, WooHyun Jung 
> wrote:
>> Hello. I'm WooHyun Jung.
>>
>>
>>
>> I modified some codes of elm_colorselector.c .
>
> Hey WooHyun,
>
> would you matter to explain me why are you proposing the following
> change, please?
>
> @@ -604,9 +635,25 @@ _add_colorbar(Evas_Object *obj)
>        wd->cp[i] = ELM_NEW(Colorselector_Data);
>
>        wd->cp[i]->parent = obj;
> -       wd->cp[i]->colorselector_num = i;
> -
> -       /* load colorbar area */
> +        wd->cp[i]->color_type = i;
> +        switch(i)
> +          {
> +           case 0 :
> +              wd->cp[i]->color_type = HUE;
> +              break;
> +           case 1 :
> +              wd->cp[i]->color_type = SATURATION;
> +              break;
> +           case 2 :
> +              wd->cp[i]->color_type = LIGHTNESS;
> +              break;
> +           case 3 :
> +              wd->cp[i]->color_type = ALPHA;
> +              break;
> +           default :
> +              break;
> +          }
> +        /* load colorbar area */
>
> It's insider a for (i = 0; i < 4; i++).
> Basically you are doing
>  wd->cp[0]->color_type = 0;
> then "i" will match case 0 and:
>  wd->cp[0]->color_type = 0 (HUE) once again...
>
> Or maybe I'm missing something.
>
>>
>> And , for about elm_entry.c , I thought that "SIG_CLICKED" was wrongly
>> emitted (by "MOUSE_UP" event).
>
> If you are proposing to use _signal_mouse_clicked instead of
> _signal_mouse_up your patch should remove this function. Don't leave
> dead code, please.
>
> Thank you
>
>>
>> So I changed it.
>>
>>
>>
>> Please check attached patch file.
>>
>> Thanks.
>>
>>
>>
> 
> --
>> 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


[E-devel] [Patch] elm_genlist and elm_list patch.

2010-11-30 Thread Daniel Juyung Seo
Dear all, I have a patch for some issues.
Anybody can review this patch and apply this to upstream?

[Genlist]
1. fixed elm_genlist_item_display_only_set() API bug.
  "elm,state,selected" signal should not be emitted when display_only is set.
  display_only was not set properly when it->block did not exist.

2. Add a macro for SWIPE_TIMEOUT
   Instead of using constant "0.4" for swipe timer in the middle of
code, I added a macro SWIPE_TIMEOUT.

3. Indentation and space fix.
   I fixed indentations for item cache and some other lines.
   I removed some unnecessary spaces.

[List]
1. Add macros for SWIPE_TIMEOUT and LONGPRESS_TIMEOUT
Instead of using constants in the middle of code, I added macros.

Thanks.
Daniel Juyung Seo.
--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Sachiel
2010/11/30 Carsten Haitzler :
> On Tue, 30 Nov 2010 16:51:51 +0100 Dave Andreoli  
> said:
>
> 7
>

That explains some things.
Oh, and happy late birthday.

>> Yeah! Happy Birthday Raster!
>> ... but now I'm curious to know your age
>>
>> DaveMDS
>>
>> 2010/11/30 Gustavo Lima Chaves :
>> > * Thomas Gstädtner  [2010-11-30 09:43:43 +0100]:
>> >
>> >> On Tue, Nov 30, 2010 at 01:48, Mike Blumenkrantz  
>> >> wrote:
>> >> > This patch needs to be applied immediately, please review.
>> >> >
>> >> >
>> >> > Index: src/modules/engines/gl_x11/evas_engine.c
>> >> > ===
>> >> > --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
>> >> > +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
>> >> > @@ -219,6 +219,7 @@
>> >> >  _re_wincheck(Render_Engine *re)
>> >> >  {
>> >> >    if (re->win->surf) return 1;
>> >> > +#error "Happy birthday raster"
>> >> >    eng_window_resurf(re->win);
>> >> >    if (!re->win->surf)
>> >> >      {
>> >>
>> >>
>> >> Signed-off by: Thomas Gstädtner
>> >>
>> >>
>> >> Congrats raster, keep it up!
>> >
>> > Parabéns, chapa :) Happy birthay, Raster.
>> >
>> >>
>> >> --
>> >> 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
>> >
>> > --
>> > Gustavo Lima Chaves
>> > Computer Engineer @ ProFUSION Embedded Systems
>> >
>> > --
>> > 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
>>
>
>
> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>
>
> --
> 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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread The Rasterman
On Tue, 30 Nov 2010 16:51:51 +0100 Dave Andreoli  said:

7

> Yeah! Happy Birthday Raster!
> ... but now I'm curious to know your age
> 
> DaveMDS
> 
> 2010/11/30 Gustavo Lima Chaves :
> > * Thomas Gstädtner  [2010-11-30 09:43:43 +0100]:
> >
> >> On Tue, Nov 30, 2010 at 01:48, Mike Blumenkrantz  wrote:
> >> > This patch needs to be applied immediately, please review.
> >> >
> >> >
> >> > Index: src/modules/engines/gl_x11/evas_engine.c
> >> > ===
> >> > --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
> >> > +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
> >> > @@ -219,6 +219,7 @@
> >> >  _re_wincheck(Render_Engine *re)
> >> >  {
> >> >    if (re->win->surf) return 1;
> >> > +#error "Happy birthday raster"
> >> >    eng_window_resurf(re->win);
> >> >    if (!re->win->surf)
> >> >      {
> >>
> >>
> >> Signed-off by: Thomas Gstädtner
> >>
> >>
> >> Congrats raster, keep it up!
> >
> > Parabéns, chapa :) Happy birthay, Raster.
> >
> >>
> >> --
> >> 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
> >
> > --
> > Gustavo Lima Chaves
> > Computer Engineer @ ProFUSION Embedded Systems
> >
> > --
> > 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
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
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


Re: [E-devel] E SVN: sachiel trunk/edje/src/bin

2010-11-30 Thread Gustavo Sverzut Barbieri
On Tue, Nov 30, 2010 at 2:10 PM, Iván Briano (Sachiel)
 wrote:
> 2010/11/30 Dave Andreoli :
>> 2010/11/30 Enlightenment SVN :
>>> Log:
>>> Make edje_cc store script source snippets (only embryo now) in the 
>>> generated file.
>>>
>>>  Yeah... yeah... we are on a freeze and we aren't supposed to be doing 
>>> things like this, but it's not change anything other than allow edje_edit 
>>> to know about scripts in order to not screw them up when modifying a file.
>>
>>
>> OMG thanks!!!
>> I was waiting for this for 3 yearsand was so simplestupid me...
>>
>
> Wait for the edje_edit part. It's not that simple... or is it?
> In any case, they are a lot of pitfalls to consider when taking care of this.

Yeah Dave, right now the current Edje_Edit.h API will turn edjes with
scripts into unusable things after you restack parts or add/remove
them, as the PART:"name" id will change. Same for signal
add/removal so other than saving and restoring it to EDJ/EDC,
Sachiel will have the nasty work to make edje_edit_object to recompile
the embryo and replace the VM references in runtime :-/

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Tom Hacohen
On Wed, 2010-12-01 at 01:14 +0900, Daniel Juyung Seo wrote:
> this will help you :)
> 
> http://en.wikipedia.org/wiki/Rasterman

OMG - STALKER!!! :P

--
Tom.


--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Daniel Juyung Seo
this will help you :)

http://en.wikipedia.org/wiki/Rasterman


On Wed, Dec 1, 2010 at 12:51 AM, Dave Andreoli  wrote:
> Yeah! Happy Birthday Raster!
> ... but now I'm curious to know your age
>
> DaveMDS
>
> 2010/11/30 Gustavo Lima Chaves :
>> * Thomas Gstädtner  [2010-11-30 09:43:43 +0100]:
>>
>>> On Tue, Nov 30, 2010 at 01:48, Mike Blumenkrantz  wrote:
>>> > This patch needs to be applied immediately, please review.
>>> >
>>> >
>>> > Index: src/modules/engines/gl_x11/evas_engine.c
>>> > ===
>>> > --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
>>> > +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
>>> > @@ -219,6 +219,7 @@
>>> >  _re_wincheck(Render_Engine *re)
>>> >  {
>>> >    if (re->win->surf) return 1;
>>> > +#error "Happy birthday raster"
>>> >    eng_window_resurf(re->win);
>>> >    if (!re->win->surf)
>>> >      {
>>>
>>>
>>> Signed-off by: Thomas Gstädtner
>>>
>>>
>>> Congrats raster, keep it up!
>>
>> Parabéns, chapa :) Happy birthay, Raster.
>>
>>>
>>> --
>>> 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
>>
>> --
>> Gustavo Lima Chaves
>> Computer Engineer @ ProFUSION Embedded Systems
>>
>> --
>> 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
>

--
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


Re: [E-devel] E SVN: sachiel trunk/edje/src/bin

2010-11-30 Thread Sachiel
2010/11/30 Dave Andreoli :
> 2010/11/30 Enlightenment SVN :
>> Log:
>> Make edje_cc store script source snippets (only embryo now) in the generated 
>> file.
>>
>>  Yeah... yeah... we are on a freeze and we aren't supposed to be doing 
>> things like this, but it's not change anything other than allow edje_edit to 
>> know about scripts in order to not screw them up when modifying a file.
>
>
> OMG thanks!!!
> I was waiting for this for 3 yearsand was so simplestupid me...
>

Wait for the edje_edit part. It's not that simple... or is it?
In any case, they are a lot of pitfalls to consider when taking care of this.

> DaveMDS (spanking himself)
>
>
>
>>
>>
>> Author:       sachiel
>> Date:         2010-11-30 07:37:20 -0800 (Tue, 30 Nov 2010)
>> New Revision: 55088
>> Trac:         http://trac.enlightenment.org/e/changeset/55088
>>
>> Modified:
>>  trunk/edje/src/bin/edje_cc.h trunk/edje/src/bin/edje_cc_handlers.c 
>> trunk/edje/src/bin/edje_cc_out.c
>>
>> Modified: trunk/edje/src/bin/edje_cc.h
>> ===
>> --- trunk/edje/src/bin/edje_cc.h        2010-11-30 15:18:21 UTC (rev 55087)
>> +++ trunk/edje/src/bin/edje_cc.h        2010-11-30 15:37:20 UTC (rev 55088)
>> @@ -78,6 +78,7 @@
>>  {
>>    int       l1, l2;
>>    char      *shared;
>> +   char      *original;
>>    Eina_List *programs;
>>    int         is_lua;
>>  };
>> @@ -87,6 +88,7 @@
>>    int        l1, l2;
>>    int        id;
>>    char      *script;
>> +   char      *original;
>>  };
>>
>>  struct _SrcFile
>>
>> Modified: trunk/edje/src/bin/edje_cc_handlers.c
>> ===
>> --- trunk/edje/src/bin/edje_cc_handlers.c       2010-11-30 15:18:21 UTC (rev 
>> 55087)
>> +++ trunk/edje/src/bin/edje_cc_handlers.c       2010-11-30 15:37:20 UTC (rev 
>> 55088)
>> @@ -1937,6 +1937,7 @@
>>                  exit(-1);
>>               }
>>             cd->shared = s;
>> +             cd->original = strdup(s);
>>             cd->is_lua = 0;
>>             set_verbatim(NULL, 0, 0);
>>          }
>> @@ -7026,6 +7027,7 @@
>>             cp->l1 = get_verbatim_line1();
>>             cp->l2 = get_verbatim_line2();
>>             cp->script = s;
>> +             cp->original = strdup(s);
>>             if (cd->shared && cd->is_lua)
>>               {
>>                  ERR("%s: Error. parse error %s:%i. You're trying to mix 
>> Embryo and Lua scripting in the same group",
>>
>> Modified: trunk/edje/src/bin/edje_cc_out.c
>> ===
>> --- trunk/edje/src/bin/edje_cc_out.c    2010-11-30 15:18:21 UTC (rev 55087)
>> +++ trunk/edje/src/bin/edje_cc_out.c    2010-11-30 15:37:20 UTC (rev 55088)
>> @@ -848,8 +848,11 @@
>>      {
>>        char tmpn[PATH_MAX];
>>        char tmpo[PATH_MAX];
>> +        char buf[PATH_MAX];
>>        int fd;
>>        Code *cd = eina_list_data_get(l);
>> +        Eina_List *ll;
>> +        Code_Program *cp;
>>
>>        if (cd->is_lua)
>>          continue;
>> @@ -879,6 +882,20 @@
>>
>>        unlink(tmpn);
>>        unlink(tmpo);
>> +
>> +        if (cd->original)
>> +          {
>> +             snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i", i);
>> +             eet_write(ef, buf, cd->original, strlen(cd->original) + 1, 1);
>> +          }
>> +        EINA_LIST_FOREACH(cd->programs, ll, cp)
>> +          {
>> +             if (!cp->original)
>> +               continue;
>> +             snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i/%i", i,
>> +                      cp->id);
>> +             eet_write(ef, buf, cp->original, strlen(cp->original) + 1, 1);
>> +          }
>>      }
>>  }
>>
>>
>>
>> --
>> 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-svn mailing list
>> enlightenment-...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>>
>
> --
> 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
>


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Dave Andreoli
Yeah! Happy Birthday Raster!
... but now I'm curious to know your age

DaveMDS

2010/11/30 Gustavo Lima Chaves :
> * Thomas Gstädtner  [2010-11-30 09:43:43 +0100]:
>
>> On Tue, Nov 30, 2010 at 01:48, Mike Blumenkrantz  wrote:
>> > This patch needs to be applied immediately, please review.
>> >
>> >
>> > Index: src/modules/engines/gl_x11/evas_engine.c
>> > ===
>> > --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
>> > +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
>> > @@ -219,6 +219,7 @@
>> >  _re_wincheck(Render_Engine *re)
>> >  {
>> >    if (re->win->surf) return 1;
>> > +#error "Happy birthday raster"
>> >    eng_window_resurf(re->win);
>> >    if (!re->win->surf)
>> >      {
>>
>>
>> Signed-off by: Thomas Gstädtner
>>
>>
>> Congrats raster, keep it up!
>
> Parabéns, chapa :) Happy birthay, Raster.
>
>>
>> --
>> 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
>
> --
> Gustavo Lima Chaves
> Computer Engineer @ ProFUSION Embedded Systems
>
> --
> 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


Re: [E-devel] E SVN: sachiel trunk/edje/src/bin

2010-11-30 Thread Dave Andreoli
2010/11/30 Enlightenment SVN :
> Log:
> Make edje_cc store script source snippets (only embryo now) in the generated 
> file.
>
>  Yeah... yeah... we are on a freeze and we aren't supposed to be doing things 
> like this, but it's not change anything other than allow edje_edit to know 
> about scripts in order to not screw them up when modifying a file.


OMG thanks!!!
I was waiting for this for 3 yearsand was so simplestupid me...

DaveMDS (spanking himself)



>
>
> Author:       sachiel
> Date:         2010-11-30 07:37:20 -0800 (Tue, 30 Nov 2010)
> New Revision: 55088
> Trac:         http://trac.enlightenment.org/e/changeset/55088
>
> Modified:
>  trunk/edje/src/bin/edje_cc.h trunk/edje/src/bin/edje_cc_handlers.c 
> trunk/edje/src/bin/edje_cc_out.c
>
> Modified: trunk/edje/src/bin/edje_cc.h
> ===
> --- trunk/edje/src/bin/edje_cc.h        2010-11-30 15:18:21 UTC (rev 55087)
> +++ trunk/edje/src/bin/edje_cc.h        2010-11-30 15:37:20 UTC (rev 55088)
> @@ -78,6 +78,7 @@
>  {
>    int       l1, l2;
>    char      *shared;
> +   char      *original;
>    Eina_List *programs;
>    int         is_lua;
>  };
> @@ -87,6 +88,7 @@
>    int        l1, l2;
>    int        id;
>    char      *script;
> +   char      *original;
>  };
>
>  struct _SrcFile
>
> Modified: trunk/edje/src/bin/edje_cc_handlers.c
> ===
> --- trunk/edje/src/bin/edje_cc_handlers.c       2010-11-30 15:18:21 UTC (rev 
> 55087)
> +++ trunk/edje/src/bin/edje_cc_handlers.c       2010-11-30 15:37:20 UTC (rev 
> 55088)
> @@ -1937,6 +1937,7 @@
>                  exit(-1);
>               }
>             cd->shared = s;
> +             cd->original = strdup(s);
>             cd->is_lua = 0;
>             set_verbatim(NULL, 0, 0);
>          }
> @@ -7026,6 +7027,7 @@
>             cp->l1 = get_verbatim_line1();
>             cp->l2 = get_verbatim_line2();
>             cp->script = s;
> +             cp->original = strdup(s);
>             if (cd->shared && cd->is_lua)
>               {
>                  ERR("%s: Error. parse error %s:%i. You're trying to mix 
> Embryo and Lua scripting in the same group",
>
> Modified: trunk/edje/src/bin/edje_cc_out.c
> ===
> --- trunk/edje/src/bin/edje_cc_out.c    2010-11-30 15:18:21 UTC (rev 55087)
> +++ trunk/edje/src/bin/edje_cc_out.c    2010-11-30 15:37:20 UTC (rev 55088)
> @@ -848,8 +848,11 @@
>      {
>        char tmpn[PATH_MAX];
>        char tmpo[PATH_MAX];
> +        char buf[PATH_MAX];
>        int fd;
>        Code *cd = eina_list_data_get(l);
> +        Eina_List *ll;
> +        Code_Program *cp;
>
>        if (cd->is_lua)
>          continue;
> @@ -879,6 +882,20 @@
>
>        unlink(tmpn);
>        unlink(tmpo);
> +
> +        if (cd->original)
> +          {
> +             snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i", i);
> +             eet_write(ef, buf, cd->original, strlen(cd->original) + 1, 1);
> +          }
> +        EINA_LIST_FOREACH(cd->programs, ll, cp)
> +          {
> +             if (!cp->original)
> +               continue;
> +             snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i/%i", i,
> +                      cp->id);
> +             eet_write(ef, buf, cp->original, strlen(cp->original) + 1, 1);
> +          }
>      }
>  }
>
>
>
> --
> 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-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 13:48 -0200, Iván Briano (Sachiel) wrote:
> I'm always serious. I still don't understand why you have doubts about it.
> 
Because most of the people are volatile, I'm glad to see you are not.
> 
> Shouldn't we then have a first season lasting 10 years instead of suddently
> cutting it off? Or are we being directed by Joss Whedon?

Cutting it off? We didn't cut it off, we just made it more exclusive, if
people want to get season 2 and season 3 when it's out (I hope we won't
get canceled by then) they should bother registering to this list as
well.

--
Tom.




--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Tom Hacohen :
> On Tue, 2010-11-30 at 13:41 -0200, Iván Briano (Sachiel) wrote:
>> Oh yeah... I volunteered, how could I forget that?
>> Now back to being dead serious, I wonder what everyone else is thinking
>> about this conversation in the publics lists.
>> And I just noticed the E Users list was dropped, which also makes me wonder
>> if the people that doesn't subscribe to e-devel is now waiting for Season 2 
>> or
>> something like that.
>>
>> Yeah, dead serious. All the time.
>
> Now I really can't tell if you are serious or not. :|
>

I'm always serious. I still don't understand why you have doubts about it.

> Regarding Season 2: well, being an EFL developer has its perks, people
> should know that by now...
>

Shouldn't we then have a first season lasting 10 years instead of suddently
cutting it off? Or are we being directed by Joss Whedon?

> --
> Tom.
>
>

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 13:41 -0200, Iván Briano (Sachiel) wrote:
> Oh yeah... I volunteered, how could I forget that?
> Now back to being dead serious, I wonder what everyone else is thinking
> about this conversation in the publics lists.
> And I just noticed the E Users list was dropped, which also makes me wonder
> if the people that doesn't subscribe to e-devel is now waiting for Season 2 or
> something like that.
> 
> Yeah, dead serious. All the time.

Now I really can't tell if you are serious or not. :|

Regarding Season 2: well, being an EFL developer has its perks, people
should know that by now...

--
Tom.



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Tom Hacohen :
> On Tue, 2010-11-30 at 13:31 -0200, Iván Briano (Sachiel) wrote:
>> Yes, on top of dead serious, I'm dead lazy and didn't say but the minimum.
>
> You are not lazy! You volunteered to manage the weekly reports, that has
> to count for something...
>

Oh yeah... I volunteered, how could I forget that?
Now back to being dead serious, I wonder what everyone else is thinking
about this conversation in the publics lists.
And I just noticed the E Users list was dropped, which also makes me wonder
if the people that doesn't subscribe to e-devel is now waiting for Season 2 or
something like that.

Yeah, dead serious. All the time.

> --
> Tom.
>
>

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 13:31 -0200, Iván Briano (Sachiel) wrote:
> Yes, on top of dead serious, I'm dead lazy and didn't say but the minimum.

You are not lazy! You volunteered to manage the weekly reports, that has
to count for something...

--
Tom.



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Tom Hacohen :
> On Tue, 2010-11-30 at 13:23 -0200, Iván Briano (Sachiel) wrote:
>> You explained it later.
>
> Oh, now I understand which joke you were talking about.
>

Yes, on top of dead serious, I'm dead lazy and didn't say but the minimum.

> --
> Tom.
>
>

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 13:23 -0200, Iván Briano (Sachiel) wrote:
> You explained it later.

Oh, now I understand which joke you were talking about.

--
Tom.



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Cedric BAIL :
> On Tue, Nov 30, 2010 at 4:22 PM, Tom Hacohen
>  wrote:
>> On Tue, 2010-11-30 at 13:18 -0200, Iván Briano (Sachiel) wrote:
>>> 2010/11/30 Tom Hacohen :
>>> > On Tue, 2010-11-30 at 13:11 -0200, Iván Briano (Sachiel) wrote:
>>> >> Ohhh... I didn't understand your answer before...
>>> >> That should tell if I was serious or not.
>>> >
>>> > Oh. You see? That what happens when people don't use "j/k".
>>>
>>> I knew you were kidding, I didn't understand the joke.
>>
>> Now I'm confused.. (no idea what made you understand all of a sudden) :|
>> Well nvm then :)
>>
>
> Told you, he is never serious ! :-D

Dead serious. All the time.

> --
> Cedric BAIL
>

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 16:25 +0100, Cedric BAIL wrote:
> Told you, he is never serious ! :-D

Told me? I know he's never serious... When I said "I hope" I was
joking...
Everyone knows Sachiel is never nice nor serious :)

--
Tom.



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Cedric BAIL
On Tue, Nov 30, 2010 at 4:22 PM, Tom Hacohen
 wrote:
> On Tue, 2010-11-30 at 13:18 -0200, Iván Briano (Sachiel) wrote:
>> 2010/11/30 Tom Hacohen :
>> > On Tue, 2010-11-30 at 13:11 -0200, Iván Briano (Sachiel) wrote:
>> >> Ohhh... I didn't understand your answer before...
>> >> That should tell if I was serious or not.
>> >
>> > Oh. You see? That what happens when people don't use "j/k".
>>
>> I knew you were kidding, I didn't understand the joke.
>
> Now I'm confused.. (no idea what made you understand all of a sudden) :|
> Well nvm then :)
>

Told you, he is never serious ! :-D
-- 
Cedric BAIL

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Tom Hacohen :
> On Tue, 2010-11-30 at 13:18 -0200, Iván Briano (Sachiel) wrote:
>> 2010/11/30 Tom Hacohen :
>> > On Tue, 2010-11-30 at 13:11 -0200, Iván Briano (Sachiel) wrote:
>> >> Ohhh... I didn't understand your answer before...
>> >> That should tell if I was serious or not.
>> >
>> > Oh. You see? That what happens when people don't use "j/k".
>> >
>>
>> I knew you were kidding, I didn't understand the joke.
>
> Now I'm confused.. (no idea what made you understand all of a sudden) :|
> Well nvm then :)
>

You explained it later.

> --
> Tom.
>
>

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 13:18 -0200, Iván Briano (Sachiel) wrote:
> 2010/11/30 Tom Hacohen :
> > On Tue, 2010-11-30 at 13:11 -0200, Iván Briano (Sachiel) wrote:
> >> Ohhh... I didn't understand your answer before...
> >> That should tell if I was serious or not.
> >
> > Oh. You see? That what happens when people don't use "j/k".
> >
> 
> I knew you were kidding, I didn't understand the joke.

Now I'm confused.. (no idea what made you understand all of a sudden) :|
Well nvm then :)

--
Tom.



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Tom Hacohen :
> On Tue, 2010-11-30 at 13:11 -0200, Iván Briano (Sachiel) wrote:
>> Ohhh... I didn't understand your answer before...
>> That should tell if I was serious or not.
>
> Oh. You see? That what happens when people don't use "j/k".
>

I knew you were kidding, I didn't understand the joke.

> --
> Tom.
>
>

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 13:11 -0200, Iván Briano (Sachiel) wrote:
> Ohhh... I didn't understand your answer before...
> That should tell if I was serious or not.

Oh. You see? That what happens when people don't use "j/k".

--
Tom.



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Tom Hacohen :
> On Tue, 2010-11-30 at 15:47 +0100, Cedric BAIL wrote:
>> On Tue, Nov 30, 2010 at 3:43 PM, Tom Hacohen
>>  wrote:
>> > On Tue, 2010-11-30 at 22:41 +0800, P Purkayastha wrote:
>> >> /me was kidding ;)
>> >
>> > I was also kidding, and I think (hope) Sachiel was as well.
>>
>> The question is more when is Sachiel serious !
>
> Never... That's what made my assumption so easy. :P
>

Ohhh... I didn't understand your answer before...
That should tell if I was serious or not.

> --
> Tom.
>
>
> --
> 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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 15:47 +0100, Cedric BAIL wrote:
> On Tue, Nov 30, 2010 at 3:43 PM, Tom Hacohen
>  wrote:
> > On Tue, 2010-11-30 at 22:41 +0800, P Purkayastha wrote:
> >> /me was kidding ;)
> >
> > I was also kidding, and I think (hope) Sachiel was as well.
> 
> The question is more when is Sachiel serious !

Never... That's what made my assumption so easy. :P

--
Tom.


--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Cedric BAIL
On Tue, Nov 30, 2010 at 3:43 PM, Tom Hacohen
 wrote:
> On Tue, 2010-11-30 at 22:41 +0800, P Purkayastha wrote:
>> /me was kidding ;)
>
> I was also kidding, and I think (hope) Sachiel was as well.

The question is more when is Sachiel serious !
-- 
Cedric BAIL

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 22:41 +0800, P Purkayastha wrote:
> /me was kidding ;)

I was also kidding, and I think (hope) Sachiel was as well.

--
Tom.



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread P Purkayastha
On 11/30/2010 10:33 PM, Tom Hacohen wrote:
> On Tue, 2010-11-30 at 22:27 +0800, P Purkayastha wrote:
>> On 11/30/2010 07:48 PM, Tom Hacohen wrote:
>>> On Tue, 2010-11-30 at 09:31 -0200, Iván Briano (Sachiel) wrote:
 I see you aim really low in life.
>>>
>>> Yes, but luckily I'm a bad shot.
>>
>> So, you hit the lowest point?
>
> No, I aimed low and hit high... (cause I'm a bad shot...)
>

/me was kidding ;)

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 22:27 +0800, P Purkayastha wrote:
> On 11/30/2010 07:48 PM, Tom Hacohen wrote:
> > On Tue, 2010-11-30 at 09:31 -0200, Iván Briano (Sachiel) wrote:
> >> I see you aim really low in life.
> >
> > Yes, but luckily I'm a bad shot.
> 
> So, you hit the lowest point?

No, I aimed low and hit high... (cause I'm a bad shot...)



--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread P Purkayastha
On 11/30/2010 07:48 PM, Tom Hacohen wrote:
> On Tue, 2010-11-30 at 09:31 -0200, Iván Briano (Sachiel) wrote:
>> I see you aim really low in life.
>
> Yes, but luckily I'm a bad shot.

So, you hit the lowest point?

--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Gustavo Lima Chaves
* Thomas Gstädtner  [2010-11-30 09:43:43 +0100]:

> On Tue, Nov 30, 2010 at 01:48, Mike Blumenkrantz  wrote:
> > This patch needs to be applied immediately, please review.
> >
> >
> > Index: src/modules/engines/gl_x11/evas_engine.c
> > ===
> > --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
> > +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
> > @@ -219,6 +219,7 @@
> >  _re_wincheck(Render_Engine *re)
> >  {
> >    if (re->win->surf) return 1;
> > +#error "Happy birthday raster"
> >    eng_window_resurf(re->win);
> >    if (!re->win->surf)
> >      {
> 
> 
> Signed-off by: Thomas Gstädtner
> 
> 
> Congrats raster, keep it up!

Parabéns, chapa :) Happy birthay, Raster.

> 
> --
> 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

-- 
Gustavo Lima Chaves
Computer Engineer @ ProFUSION Embedded Systems

--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Leandro Pereira
2010/11/30 Tiago Falcão :
> Mike++
>
> Happy Birthday Raster!
>

Actually, this is raster++. :)

-- 
Cheers,
  Leandro

--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Tiago Falcão
Mike++

Happy Birthday Raster!

On Tue, Nov 30, 2010 at 7:32 AM, Steven Le Roux  wrote:
> Hmm reviewing it, it's not good.
>
> You should better use EINA_LOG_INFO()  and then print it with
> eina_log_print() ;)
>
>
> Happy birthday Raster ;)
>
>
> On Tue, Nov 30, 2010 at 1:48 AM, Mike Blumenkrantz  wrote:
>> This patch needs to be applied immediately, please review.
>>
>>
>> Index: src/modules/engines/gl_x11/evas_engine.c
>> ===
>> --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
>> +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
>> @@ -219,6 +219,7 @@
>>  _re_wincheck(Render_Engine *re)
>>  {
>>    if (re->win->surf) return 1;
>> +#error "Happy birthday raster"
>>    eng_window_resurf(re->win);
>>    if (!re->win->surf)
>>      {
>>
>>
>> --
>> Mike Blumenkrantz
>> Zentific: Our boolean values are huge.
>>
>> --
>> 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
>>
>
>
>
> --
> Steven Le Roux
> Jabber-ID : ste...@jabber.fr
> 0x39494CCB 
> 2FF7 226B 552E 4709 03F0  6281 72D7 A010 3949 4CCB
>
> --
> 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
>



-- 
Tiago Rezende Campos Falcão
Developer @ ProFUSION Embedded Systems

--
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


Re: [E-devel] [PATCH] eve: use file realpath for file:// schema

2010-11-30 Thread Leandro Pereira
On Mon, Nov 29, 2010 at 10:09 PM, Marco Trevisan (Treviño)
 wrote:
> In previous patches I forgot to use the file absolute path when
> processing a file:// schema. Webkit doesn't work with relative paths, so
> this is needed for opening something with "eve my_file.html"

Applied with minor changes -- ecore_file_realpath() returns a
newly-allocated string so it must be properly freed.

-- 
Cheers,
  Leandro

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Tom Hacohen
On Tue, 2010-11-30 at 09:31 -0200, Iván Briano (Sachiel) wrote:
> I see you aim really low in life.

Yes, but luckily I'm a bad shot.






--
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


Re: [E-devel] eve bugs (acidx + abgrilo)

2010-11-30 Thread Leandro Pereira
On Mon, Nov 29, 2010 at 10:54 PM, Mike Blumenkrantz  wrote:
>
> it seems the latest snap does build on my machine as long as I use
> curl and disable everything else, so the compile error I have repeatedly
> reported is definitely something glib related.  not sure if that helps, but I
> can provide build errors whenever you guys want.
>

Both myself and the bots builds with the libsoup backend, so I'm
pretty sure it is working. Pastebin the build error again and I'll
look at it -- perhaps I'll need a couple more files, such as the
generated CMakeCache.txt (on the build directory).

>
> scrolling on sites is broken.  the scrollbar moves but the content does not
> redraw (it does move though, since you can't click links after scrolling)
>

This is known and is being worked on.

-- 
Cheers,
  Leandro

--
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


Re: [E-devel] First (Hopefully) Weekly report

2010-11-30 Thread Sachiel
2010/11/30 Tom Hacohen :
> You are an example to us all. ;P
>

I see you aim really low in life.

--
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


Re: [E-devel] [PATCH] Some modifications about elm_colorselector.c and elm_entry.c

2010-11-30 Thread WooHyun Jung
Hello ~ 
I modified my patch. 

The reason for modifying about elm_colorselector can be "readability".
Each bar in the colorselector has its own color type (like hue, saturation,
...)
So I thought it will be better, if I added enum for each color type. 

And about elm_entry, 
I deleted mouse_up callback function (as you advised), 
because this function didn't do anything by my modification.

Thanks. 

-Original Message-
From: Bruno Dilly [mailto:bdi...@profusion.mobi] 
Sent: Wednesday, November 24, 2010 11:35 PM
To: WooHyun Jung
Cc: enlightenment-devel@lists.sourceforge.net
Subject: Re: [E-devel] [PATCH] Some modifications about elm_colorselector.c
and elm_entry.c

On Wed, Nov 24, 2010 at 11:44 AM, WooHyun Jung 
wrote:
> Hello. I'm WooHyun Jung.
>
>
>
> I modified some codes of elm_colorselector.c .

Hey WooHyun,

would you matter to explain me why are you proposing the following
change, please?

@@ -604,9 +635,25 @@ _add_colorbar(Evas_Object *obj)
wd->cp[i] = ELM_NEW(Colorselector_Data);

wd->cp[i]->parent = obj;
-   wd->cp[i]->colorselector_num = i;
-
-   /* load colorbar area */
+wd->cp[i]->color_type = i;
+switch(i)
+  {
+   case 0 :
+  wd->cp[i]->color_type = HUE;
+  break;
+   case 1 :
+  wd->cp[i]->color_type = SATURATION;
+  break;
+   case 2 :
+  wd->cp[i]->color_type = LIGHTNESS;
+  break;
+   case 3 :
+  wd->cp[i]->color_type = ALPHA;
+  break;
+   default :
+  break;
+  }
+/* load colorbar area */

It's insider a for (i = 0; i < 4; i++).
Basically you are doing
  wd->cp[0]->color_type = 0;
then "i" will match case 0 and:
  wd->cp[0]->color_type = 0 (HUE) once again...

Or maybe I'm missing something.

>
> And , for about elm_entry.c , I thought that "SIG_CLICKED" was wrongly
> emitted (by "MOUSE_UP" event).

If you are proposing to use _signal_mouse_clicked instead of
_signal_mouse_up your patch should remove this function. Don't leave
dead code, please.

Thank you

>
> So I changed it.
>
>
>
> Please check attached patch file.
>
> Thanks.
>
>
>

--
> 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
>
>
Index: elm_colorselector.c
===
--- elm_colorselector.c (revision 55060)
+++ elm_colorselector.c (working copy)
@@ -14,8 +14,22 @@
 #define LIG_STEP 256.0
 #define ALP_STEP 256.0
 
+typedef enum _Button_State
+{
+   BUTTON_RELEASED,
+   L_BUTTON_PRESSED,
+   R_BUTTON_PRESSED
+} Button_State;
+
+typedef enum _Color_Type
+{
+   HUE,
+   SATURATION,
+   LIGHTNESS,
+   ALPHA
+} Color_Type;
+
 typedef struct _Colorselector_Data Colorselector_Data;
-
 struct _Colorselector_Data
 {
Evas_Object *parent;
@@ -26,12 +40,11 @@ struct _Colorselector_Data
Evas_Object *bg_rect;
Evas_Object *arrow;
Evas_Object *touch_area;
-   int colorselector_num;
-   int button_state;
+   Color_Type color_type;
+   Button_State button_state;
 };
 
 typedef struct _Widget_Data Widget_Data;
-
 struct _Widget_Data
 {
Evas_Object *base;
@@ -46,13 +59,6 @@ struct _Widget_Data
Ecore_Timer *mv_timer;
 };
 
-typedef enum
-{
-   BUTTON_RELEASED,
-   L_BUTTON_PRESSED,
-   R_BUTTON_PRESSED
-} Button_State;
-
 static const char *widtype = NULL;
 
 static void _del_hook(Evas_Object *obj);
@@ -317,9 +323,9 @@ _draw_rects(void *data, double x)
Widget_Data *wd = elm_widget_data_get(cp->parent);
double one_six = 1.0 / 6.0;
 
-   switch (cp->colorselector_num)
+   switch (cp->color_type)
  {
- case 0:
+ case HUE:
 wd->h = 360.0 * x;
 
 if (x < one_six)
@@ -377,26 +383,25 @@ _draw_rects(void *data, double x)
   wd->a);
 break;
 
- case 1:
+ case SATURATION:
 wd->s = 1.0 - x;
 _color_with_saturation(wd);
 evas_object_color_set(wd->cp[1]->arrow, wd->sr, wd->sg, wd->sb, 255);
 break;
 
- case 2:
+ case LIGHTNESS:
 wd->l = x;
 _color_with_lightness(wd);
 evas_object_color_set(wd->cp[2]->arrow, wd->lr, wd->lg, wd->lb, 255);
 break;
 
- case 3:
+ case ALPHA:
 wd->a = 255.0 * x;
 evas_object_color_set(wd->cp[3]->arrow, wd->er, wd->eg, wd->eb, wd->a);
 break;
 
  default:
 b

Re: [E-devel] [PATCH] eve: use file realpath for file:// schema

2010-11-30 Thread Gustavo Sverzut Barbieri
On Tuesday, November 30, 2010, Rui Miguel Silva Seabra  wrote:
> Em 30-11-2010 00:09, Marco Trevisan (Treviño) escreveu:
>> In previous patches I forgot to use the file absolute path when
>> processing a file:// schema. Webkit doesn't work with relative paths, so
>> this is needed for opening something with "eve my_file.html"
>
> Will this file:// support allow some javascript code to get file://paths
> ? Hope not...

This is just for command line. Everything from inside webkit (js,
links...) goes through a sandbox policy, same for other browsers



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Steven Le Roux
Hmm reviewing it, it's not good.

You should better use EINA_LOG_INFO()  and then print it with
eina_log_print() ;)


Happy birthday Raster ;)


On Tue, Nov 30, 2010 at 1:48 AM, Mike Blumenkrantz  wrote:
> This patch needs to be applied immediately, please review.
>
>
> Index: src/modules/engines/gl_x11/evas_engine.c
> ===
> --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
> +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
> @@ -219,6 +219,7 @@
>  _re_wincheck(Render_Engine *re)
>  {
>    if (re->win->surf) return 1;
> +#error "Happy birthday raster"
>    eng_window_resurf(re->win);
>    if (!re->win->surf)
>      {
>
>
> --
> Mike Blumenkrantz
> Zentific: Our boolean values are huge.
>
> --
> 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
>



-- 
Steven Le Roux
Jabber-ID : ste...@jabber.fr
0x39494CCB 
2FF7 226B 552E 4709 03F0  6281 72D7 A010 3949 4CCB

--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Thomas Gstädtner
On Tue, Nov 30, 2010 at 01:48, Mike Blumenkrantz  wrote:
> This patch needs to be applied immediately, please review.
>
>
> Index: src/modules/engines/gl_x11/evas_engine.c
> ===
> --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
> +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
> @@ -219,6 +219,7 @@
>  _re_wincheck(Render_Engine *re)
>  {
>    if (re->win->surf) return 1;
> +#error "Happy birthday raster"
>    eng_window_resurf(re->win);
>    if (!re->win->surf)
>      {


Signed-off by: Thomas Gstädtner


Congrats raster, keep it up!

--
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


Re: [E-devel] [PATCH] eve: use file realpath for file:// schema

2010-11-30 Thread Rui Miguel Silva Seabra
Em 30-11-2010 00:09, Marco Trevisan (Treviño) escreveu:
> In previous patches I forgot to use the file absolute path when
> processing a file:// schema. Webkit doesn't work with relative paths, so
> this is needed for opening something with "eve my_file.html"

Will this file:// support allow some javascript code to get file://paths 
? Hope not...

Rui

--
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


Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Leif Middelschulte
Alles Gute, auch aus Deutschland :-)

Second that, nice patch Disco Stew ;-)

Am 30.11.2010 um 08:59 schrieb Rafael Antognolli :

> HAHAHA! Nice catch Mike!
>
> Happy Birthday Raster!
>
> On Tue, Nov 30, 2010 at 5:44 AM, Tom Hacohen
>  wrote:
>> Happy Birthday. :P
>>
>> Mike: your patch broke my evas :|
>>
>> On Tue, 2010-11-30 at 16:22 +0900, Carsten Haitzler wrote:
>>> On Tue, 30 Nov 2010 10:14:46 +0900 Daniel Juyung Seo >> >
>>> said:
>>>
>>> hahahahah! luckily for me i was ignoring the world on my  
>>> birthday :) pathc ->
>>> denied! (thanks guys!) :)
>>>
 Great!!
 This is the best patch I've ever seen.
 Raster, you need to apply this to upstream immediately.


 On Tue, Nov 30, 2010 at 9:55 AM, Gustavo Sverzut Barbieri
  wrote:
> On Mon, Nov 29, 2010 at 10:48 PM, Mike Blumenkrantz  >
> wrote:
>> This patch needs to be applied immediately, please review.
>>
>>
>> Index: src/modules/engines/gl_x11/evas_engine.c
>> === 
>> 
>> --- src/modules/engines/gl_x11/evas_engine.c(revision 55076)
>> +++ src/modules/engines/gl_x11/evas_engine.c(working copy)
>> @@ -219,6 +219,7 @@
>>  _re_wincheck(Render_Engine *re)
>>  {
>>if (re->win->surf) return 1;
>> +#error "Happy birthday raster"
>>eng_window_resurf(re->win);
>>if (!re->win->surf)
>>  {
>
> happy birthday old man! :-)
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>
> --- 
> --- 
> --- 
> --- 
> --
> 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

>>>
>>>
>>
>>
>>
>> --- 
>> --- 
>> --- 
>> -
>> 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
>>
>
>
>
> -- 
> Rafael Antognolli
> ProFUSION embedded systems
> http://profusion.mobi
>
> --- 
> --- 
> --- 
> -
> 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
_

Re: [E-devel] URGENT: RASTER!!!!

2010-11-30 Thread Rafael Antognolli
HAHAHA! Nice catch Mike!

Happy Birthday Raster!

On Tue, Nov 30, 2010 at 5:44 AM, Tom Hacohen
 wrote:
> Happy Birthday. :P
>
> Mike: your patch broke my evas :|
>
> On Tue, 2010-11-30 at 16:22 +0900, Carsten Haitzler wrote:
>> On Tue, 30 Nov 2010 10:14:46 +0900 Daniel Juyung Seo 
>> said:
>>
>> hahahahah! luckily for me i was ignoring the world on my birthday :) pathc ->
>> denied! (thanks guys!) :)
>>
>> > Great!!
>> > This is the best patch I've ever seen.
>> > Raster, you need to apply this to upstream immediately.
>> >
>> >
>> > On Tue, Nov 30, 2010 at 9:55 AM, Gustavo Sverzut Barbieri
>> >  wrote:
>> > > On Mon, Nov 29, 2010 at 10:48 PM, Mike Blumenkrantz 
>> > > wrote:
>> > >> This patch needs to be applied immediately, please review.
>> > >>
>> > >>
>> > >> Index: src/modules/engines/gl_x11/evas_engine.c
>> > >> ===
>> > >> --- src/modules/engines/gl_x11/evas_engine.c    (revision 55076)
>> > >> +++ src/modules/engines/gl_x11/evas_engine.c    (working copy)
>> > >> @@ -219,6 +219,7 @@
>> > >>  _re_wincheck(Render_Engine *re)
>> > >>  {
>> > >>    if (re->win->surf) return 1;
>> > >> +#error "Happy birthday raster"
>> > >>    eng_window_resurf(re->win);
>> > >>    if (!re->win->surf)
>> > >>      {
>> > >
>> > > happy birthday old man! :-)
>> > >
>> > > --
>> > > Gustavo Sverzut Barbieri
>> > > http://profusion.mobi embedded systems
>> > > --
>> > > MSN: barbi...@gmail.com
>> > > Skype: gsbarbieri
>> > > Mobile: +55 (19) 9225-2202
>> > >
>> > > --
>> > > 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
>> >
>>
>>
>
>
>
> --
> 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
>



-- 
Rafael Antognolli
ProFUSION embedded systems
http://profusion.mobi

--
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