Re: [E-devel] eet_node

2010-11-28 Thread Cedric BAIL
On Sat, Nov 27, 2010 at 11:17 PM, Mike Blumenkrantz  wrote:
> On Sat, 27 Nov 2010 10:39:15 +0100
> Cedric BAIL  wrote:
>> On Sat, Nov 27, 2010 at 8:08 AM, Mike Blumenkrantz  wrote:
>> > Since you're afk in irc, I figured I would move this to the ml in case
>> > someone else ever wanted to know as well.
>>
>> Ha, ha, ha ! You don't expect anyone else than me to answer those
>> existential questions ! I think you are right probably no one else
>> than me does use this API.
>>
>> > 1) There are no docs for eet_node:
>> > http://docs.enlightenment.org/auto/eet/group__Eet__Node__Group.html
>> > This should probably be fixed at some point since the code is pretty
>> > annoying to read.
>>
>> True.
>>
>> > 2) The reason I am not able to use eet for data serialization is because it
>> > lacks a suitable binary data member in Eet_Node_Data.  In order to use
>> > binary data, you must have a function like this:
>> > Eet_Node *eet_node_binary_new(const char *name, void *data, int size)
>> > Otherwise you have no way of correctly using the node data once it has been
>> > retrieved.  If I'm missing something, let me know.
>>
>> Eet never provided such facility as a binary blob. Are you really sure
>> you want to send binary blob ? What kind of data are sending with it ?
>> I am asking because, we always avoided to put non typed data in eet,
>> so before starting adding this feature, need more information and
>> reflexion.
>>
>> > 3) I am assuming that the most efficient way to use eet as I need would be
>> > to serialize using eet_data_node_write_cipher (with NULL for cipher), then
>> > simply read back eet keys on the other end using a data descriptor to go
>> > right to the struct?  I'm purposefully avoiding using eet_connection since
>> > I have no need to use partial eet data structures; when using http
>> > transfers you must send the content length anyway (w3c standard), so I do
>> > my own internal buffering and can use the data once it has been fully
>> > received.
>>
>> Use eet_data_node_encode_cipher, that would give you an allocated
>> buffer in memory that you can send as you want. So no need for any
>> Eet_File when you are transmitting data to another computer.
> Do you have any example code using this?  The more I try to figure out how to
> make it work, the more that it seems to be impossible.

http://trac.enlightenment.org/e/browser/trunk/BINDINGS/javascript/elixir/src/lib/elixir_eet.c

That's the only code I know that using the eet node API.
-- 
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


[E-devel] Link time optimization

2010-11-28 Thread Vincent Torri

Hey,

with newer gcc, we could optimize link with -flto (and 
also maybe -fwhole-program). Shouldn't we add those options if they are 
available (i have already written m4 macro to add such flags) ?

Vincent

--
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] Link time optimization

2010-11-28 Thread Tom Hacohen
Out of curiosity: what do they do?

--
Tom.

On Sun, 2010-11-28 at 12:37 +0100, Vincent Torri wrote:
> Hey,
> 
> with newer gcc, we could optimize link with -flto (and 
> also maybe -fwhole-program). Shouldn't we add those options if they are 
> available (i have already written m4 macro to add such flags) ?
> 
> Vincent
> 
> --
> 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] Link time optimization

2010-11-28 Thread Vincent Torri


On Sun, 28 Nov 2010, Tom Hacohen wrote:

> Out of curiosity: what do they do?

http://nickclifton.livejournal.com/4128.html


--
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] Link time optimization

2010-11-28 Thread Tom Hacohen
Thanks.

As for my opinion: looks very cool, should probably use it.

--
Tom.

On Sun, 2010-11-28 at 12:49 +0100, Vincent Torri wrote:
> 
> On Sun, 28 Nov 2010, Tom Hacohen wrote:
> 
> > Out of curiosity: what do they do?
> 
> http://nickclifton.livejournal.com/4128.html
> 



--
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] Link time optimization

2010-11-28 Thread Boris 'billiob' Faure
On Sun, Nov 28, 2010 at 12:37, Vincent Torri  wrote:
>
> Hey,
>
> with newer gcc, we could optimize link with -flto (and
> also maybe -fwhole-program). Shouldn't we add those options if they are
> available (i have already written m4 macro to add such flags) ?

It's really longer to compile with these options. I think they
shouldn't be used by default.

-- 
Boris 'billiob' Faure

--
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] Link time optimization

2010-11-28 Thread Gustavo Sverzut Barbieri
On Sunday, November 28, 2010, Vincent Torri  wrote:
>
> Hey,
>
> with newer gcc, we could optimize link with -flto (and
> also maybe -fwhole-program). Shouldn't we add those options if they are
> available (i have already written m4 macro to add such flags) ?

I'm all for it you know, but raster keeps opposing even simple
visibility hidden flags


> Vincent
>
> --
> 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 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] Link time optimization

2010-11-28 Thread Mike Blumenkrantz
On Sun, 28 Nov 2010 18:53:42 -0200
Gustavo Sverzut Barbieri  wrote:

> On Sunday, November 28, 2010, Vincent Torri  wrote:
> >
> > Hey,
> >
> > with newer gcc, we could optimize link with -flto (and
> > also maybe -fwhole-program). Shouldn't we add those options if they are
> > available (i have already written m4 macro to add such flags) ?
> 
> I'm all for it you know, but raster keeps opposing even simple
> visibility hidden flags
> 
> 
> > Vincent
> >
> > --
> > 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
> >
> 
imo if the flags are available then they should be passed unless an option like
--disable-optimizations is specified

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


[E-devel] [PATCH] elementary patch for supporting keypad

2010-11-28 Thread Jihoon Kim
Hi, all.

This patch makes elementary widgets be able to handle the event of keypad.
Thanks.
Index: src/lib/elm_genlist.c
===
--- src/lib/elm_genlist.c   (revision 55046)
+++ src/lib/elm_genlist.c   (working copy)
@@ -487,35 +487,41 @@ _event_hook(Evas_Object *obj, Evas_Object *src __U
 else
   y += step_y;
  }
-   else if (!strcmp(ev->keyname, "Home"))
+   else if ((!strcmp(ev->keyname, "Home")) || 
+(!strcmp(ev->keyname, "KP_Home")))
  {
 it = elm_genlist_first_item_get(obj);
 elm_genlist_item_bring_in(it);
 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
 return EINA_TRUE;
  }
-   else if (!strcmp(ev->keyname, "End"))
+   else if ((!strcmp(ev->keyname, "End")) || 
+(!strcmp(ev->keyname, "KP_End")))
  {
 it = elm_genlist_last_item_get(obj);
 elm_genlist_item_bring_in(it);
 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
 return EINA_TRUE;
  }
-   else if (!strcmp(ev->keyname, "Prior"))
+   else if ((!strcmp(ev->keyname, "Prior")) || 
+(!strcmp(ev->keyname, "KP_Prior")))
  {
 if (page_y < 0)
   y -= -(page_y * v_h) / 100;
 else
   y -= page_y;
  }
-   else if (!strcmp(ev->keyname, "Next"))
+   else if ((!strcmp(ev->keyname, "Next")) || 
+(!strcmp(ev->keyname, "KP_Next")))
  {
 if (page_y < 0)
   y += -(page_y * v_h) / 100;
 else
   y += page_y;
  }
-   else if(((!strcmp(ev->keyname, "Return")) || (!strcmp(ev->keyname, 
"space")))
+   else if(((!strcmp(ev->keyname, "Return")) || 
+(!strcmp(ev->keyname, "KP_Enter")) || 
+(!strcmp(ev->keyname, "space")))
&& (!wd->multi) && (wd->selected))
  {
 Elm_Genlist_Item *it = elm_genlist_selected_item_get(obj);
Index: src/lib/elm_list.c
===
--- src/lib/elm_list.c  (revision 55046)
+++ src/lib/elm_list.c  (working copy)
@@ -149,7 +149,8 @@ _event_hook(Evas_Object *obj, Evas_Object *src __U
elm_smart_scroller_child_viewport_size_get(wd->scr, &v_w, &v_h);
 
/* TODO: fix logic for horizontal mode */
-   if ((!strcmp(ev->keyname, "Left")) || (!strcmp(ev->keyname, "KP_Left")))
+   if ((!strcmp(ev->keyname, "Left")) || 
+   (!strcmp(ev->keyname, "KP_Left")))
  {
 if ((wd->h_mode) &&
 (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -162,7 +163,8 @@ _event_hook(Evas_Object *obj, Evas_Object *src __U
 else
   x -= step_x;
  }
-   else if ((!strcmp(ev->keyname, "Right")) || (!strcmp(ev->keyname, 
"KP_Right")))
+   else if ((!strcmp(ev->keyname, "Right")) || 
+(!strcmp(ev->keyname, "KP_Right")))
  {
 if ((wd->h_mode) &&
 (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -175,7 +177,8 @@ _event_hook(Evas_Object *obj, Evas_Object *src __U
 else
   x += step_x;
  }
-   else if ((!strcmp(ev->keyname, "Up"))  || (!strcmp(ev->keyname, "KP_Up")))
+   else if ((!strcmp(ev->keyname, "Up"))  || 
+(!strcmp(ev->keyname, "KP_Up")))
  {
 if ((!wd->h_mode) &&
 (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -188,7 +191,8 @@ _event_hook(Evas_Object *obj, Evas_Object *src __U
 else
   y -= step_y;
  }
-   else if ((!strcmp(ev->keyname, "Down")) || (!strcmp(ev->keyname, 
"KP_Down")))
+   else if ((!strcmp(ev->keyname, "Down")) || 
+(!strcmp(ev->keyname, "KP_Down")))
  {
 if ((!wd->h_mode) &&
 (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -201,21 +205,24 @@ _event_hook(Evas_Object *obj, Evas_Object *src __U
 else
   y += step_y;
  }
-   else if (!strcmp(ev->keyname, "Home"))
+   else if ((!strcmp(ev->keyname, "Home")) || 
+(!strcmp(ev->keyname, "KP_Home")))
  {
 it = eina_list_data_get(wd->items);
 elm_list_item_bring_in(it);
 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
 return EINA_TRUE;
  }
-   else if (!strcmp(ev->keyname, "End"))
+   else if ((!strcmp(ev->keyname, "End")) || 
+(!strcmp(ev->keyname, "KP_End")))
  {
 it = eina_list_data_get(eina_list_last(wd->items));
 elm_list_item_bring_in(it);
 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
 return EINA_TRUE;
  }
-   else if (!strcmp(ev->keyname, "Prior"))
+   else if ((!strcmp(ev->keyname, "Prior")) || 
+(!strcmp(ev->keyname, "KP_Prior")))
  {
 if (wd->h_mode)
   {
@@ -232,7 +239,8 @@ _event_hook(Evas_Object *obj, Evas_Object *src __U
y -= page_y;
   }
  }
-   else if (!strcmp(ev->keyname, "Next"))
+   else if ((!strcmp(ev->keyname, "Next")) || 
+(!strcmp(ev->keyname, "KP_Next")))
  {
 if (wd->h_mode)