Re: [E-devel] [PATH] evas: add event source evas object

2013-01-03 Thread Leandro Dorileo
Hi,

On Fri, Jan 04, 2013 at 08:46:50AM +0900, Carsten Haitzler wrote:
> On Thu, 3 Jan 2013 15:38:42 -0200 Leandro Dorileo  
> said:
> 
> > 
> > Hi,
> > 
> > On Thu, Jan 03, 2013 at 04:58:49PM +0900, Carsten Haitzler wrote:
> > > On Sat, 17 Nov 2012 22:49:49 -0200 Leandro Dorileo 
> > > 
> > > said:
> > > 
> > > > Hi Raster,
> > > > 
> > > > On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> > > > > On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo
> > > > >  said:
> > > > > 
> > > > > noo!
> > > > > 
> > > > > this breaks abi.
> > > > > 
> > > > > never ADD structure members in the middle of a structure - add them at
> > > > > the END... always! at least in public api's!
> > > > 
> > > > 
> > > > Ok, attached goes a version considering the ABI thing. Thank you for
> > > > reviewing.
> > > 
> > > is it possible that you can update your patches to match the evas merge 
> > > into
> > > the efl tree?
> > 
> > 
> > Yep, sure. I can commit it if it's a "go for it" word.
> 
> i see the usefulness of it - so update and apply.



in svn, rev 82138.



> 
> > > > > > Hi,
> > > > > > 
> > > > > > Attached patch introduces fields to events Evas_Event_Mouse_*
> > > > > > structures to hold the event source evas object in case of evas
> > > > > > source events propagation.
> > > > > > 
> > > > > > Regards
> > > > > > 
> > > > 
> > > > 
> > > > Regards
> > > > 
> > > > 
> > > > -- 
> > > > Leandro Dorileo
> > > > ProFUSION embedded systems
> > > > http://profusion.mobi
> > > 
> > > 
> > > -- 
> > > - Codito, ergo sum - "I code, therefore I am" --
> > > The Rasterman (Carsten Haitzler)ras...@rasterman.com
> > > 
> > 
> > -- 
> > Leandro Dorileo
> > ProFUSION embedded systems
> > http://profusion.mobi
> > 
> 
> 
> -- 
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
> 

-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2013-01-03 Thread The Rasterman
On Thu, 3 Jan 2013 15:38:42 -0200 Leandro Dorileo  said:

> 
> Hi,
> 
> On Thu, Jan 03, 2013 at 04:58:49PM +0900, Carsten Haitzler wrote:
> > On Sat, 17 Nov 2012 22:49:49 -0200 Leandro Dorileo 
> > said:
> > 
> > > Hi Raster,
> > > 
> > > On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> > > > On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo
> > > >  said:
> > > > 
> > > > noo!
> > > > 
> > > > this breaks abi.
> > > > 
> > > > never ADD structure members in the middle of a structure - add them at
> > > > the END... always! at least in public api's!
> > > 
> > > 
> > > Ok, attached goes a version considering the ABI thing. Thank you for
> > > reviewing.
> > 
> > is it possible that you can update your patches to match the evas merge into
> > the efl tree?
> 
> 
> Yep, sure. I can commit it if it's a "go for it" word.

i see the usefulness of it - so update and apply.

> > > > > Hi,
> > > > > 
> > > > > Attached patch introduces fields to events Evas_Event_Mouse_*
> > > > > structures to hold the event source evas object in case of evas
> > > > > source events propagation.
> > > > > 
> > > > > Regards
> > > > > 
> > > 
> > > 
> > > Regards
> > > 
> > > 
> > > -- 
> > > Leandro Dorileo
> > > ProFUSION embedded systems
> > > http://profusion.mobi
> > 
> > 
> > -- 
> > - Codito, ergo sum - "I code, therefore I am" --
> > The Rasterman (Carsten Haitzler)ras...@rasterman.com
> > 
> 
> -- 
> Leandro Dorileo
> ProFUSION embedded systems
> http://profusion.mobi
> 


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


--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2013-01-03 Thread Leandro Dorileo

Hi,

On Thu, Jan 03, 2013 at 04:58:49PM +0900, Carsten Haitzler wrote:
> On Sat, 17 Nov 2012 22:49:49 -0200 Leandro Dorileo 
> said:
> 
> > Hi Raster,
> > 
> > On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> > > On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
> > > 
> > > said:
> > > 
> > > noo!
> > > 
> > > this breaks abi.
> > > 
> > > never ADD structure members in the middle of a structure - add them at the
> > > END... always! at least in public api's!
> > 
> > 
> > Ok, attached goes a version considering the ABI thing. Thank you for
> > reviewing.
> 
> is it possible that you can update your patches to match the evas merge into
> the efl tree?


Yep, sure. I can commit it if it's a "go for it" word.


> 
> > > > Hi,
> > > > 
> > > > Attached patch introduces fields to events Evas_Event_Mouse_* structures
> > > > to hold the event source evas object in case of evas source events
> > > > propagation.
> > > > 
> > > > Regards
> > > > 
> > 
> > 
> > Regards
> > 
> > 
> > -- 
> > Leandro Dorileo
> > ProFUSION embedded systems
> > http://profusion.mobi
> 
> 
> -- 
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
> 

-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2013-01-03 Thread The Rasterman
On Sat, 17 Nov 2012 22:49:49 -0200 Leandro Dorileo 
said:

> Hi Raster,
> 
> On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> > On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
> > said:
> > 
> > noo!
> > 
> > this breaks abi.
> > 
> > never ADD structure members in the middle of a structure - add them at the
> > END... always! at least in public api's!
> 
> 
> Ok, attached goes a version considering the ABI thing. Thank you for
> reviewing.

is it possible that you can update your patches to match the evas merge into
the efl tree?

> > > Hi,
> > > 
> > > Attached patch introduces fields to events Evas_Event_Mouse_* structures
> > > to hold the event source evas object in case of evas source events
> > > propagation.
> > > 
> > > Regards
> > > 
> 
> 
> Regards
> 
> 
> -- 
> Leandro Dorileo
> ProFUSION embedded systems
> http://profusion.mobi


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


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2012-11-24 Thread ChunEon Park
Yes I guessed that situation.


But it smells bad if source depends on the proxies.
And acutally I don't prefer to add that specific field in common mouse events 
structure as possible.



My preferred was. set callbacks to each proxies and work separately.
and source, it works itself.


i.e) you wanna this maybe.

source_event_callback()
{
   if (event_source == proxy1)
  something_do1_for_proxy1();
   else if (event_source == proxy2)
  someting_do2_for_proxy2();
   else
  something_do_for_source();

   

something_do();

}


rather than, my preferred was this...



proxy1_event_call()
{
   something_do1_for_proxy1();
   set_somthing_to_source_if_required();

}



proxy2_event_call()
{ 

   something_do2_for_proxy2();
   set_something_to_source_if_required();

}



source_event_callback()
{
if (set_something_to_source)

  something_do_for_source();
   

something_do();

}




-Regards, Hermet-

-Original Message-
From: "Leandro Dorileo"<dori...@profusion.mobi> 
To: "Enlightenment developer 
list"<enlightenment-devel@lists.sourceforge.net>; 
Cc: "Carsten Haitzler"<ras...@rasterman.com>; 
Sent: 2012-11-25 (일) 01:20:49
Subject: Re: [E-devel] [PATH] evas: add event source evas object

Hi Hermet,

Think about an use case where a registered callback must reacts differently 
depending on
which proxy triggered the event, like:

1) an evas object gets a callback registered to it
2) proxies are created
3) proxy event propagation is enabled with evas_object_image_source_events_set
4) callback reacts differently based on which proxy triggered the event.


Regards

On Sat, Nov 24, 2012 at 08:54:34PM +0900, ChunEon Park wrote:
> Btw, does it really source need to care about proxy in the events?
> Doesn't it enough to add callbacks to proxy directly if you need to care 
something?
> 
> 
> 
> 
> -Regards, Hermet-
> 
> -Original Message-
> From: "Leandro Dorileo"<dori...@profusion.mobi> 
> To: "Carsten Haitzler"<ras...@rasterman.com>; 
> Cc: "Enlightenment developer 
list"<enlightenment-devel@lists.sourceforge.net>; 
> Sent: 2012-11-18 (일) 09:49:49
> Subject: Re: [E-devel] [PATH] evas: add event source evas object
> 
> Hi Raster,
> 
> On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> > On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
<dorileo>@profusion.mobi>
> > said:
> > 
> > noo!
> > 
> > this breaks abi.
> > 
> > never ADD structure members in the middle of a structure - add them 
at the
> > END... always! at least in public api's!
> 
> 
> Ok, attached goes a version considering the ABI thing. Thank you for 
reviewing.
> 
> 
> > 
> > > Hi,
> > > 
> > > Attached patch introduces fields to events Evas_Event_Mouse_* 
structures
> > > to hold the event source evas object in case of evas source 
events
> > > propagation.
> > > 
> > > Regards
> > > 
> 
> 
> Regards
> 
> 
> -- 
> Leandro Dorileo
> ProFUSION embedded systems
> http://profusion.mobi
> 
> 
--
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 
> 
--
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastr

Re: [E-devel] [PATH] evas: add event source evas object

2012-11-24 Thread Leandro Dorileo
On Sat, Nov 24, 2012 at 02:20:49PM -0200, Leandro Dorileo wrote:
> Hi Hermet,
> 
> Think about an use case where a registered callback must reacts differently 
> depending on
> which proxy triggered the event, like:
> 
> 1) an evas object gets a callback registered to it
> 2) proxies are created


I forgot to mention that in that use case the proxies creation is 
hidden/wrapped by a subsystem
or library. Like on EPhysics, for soft bodies we create a whole bunch of evas 
objects proxing
an evas object provided by the user(every triangle in a trimesh becomes a 
proxy), the user doesn`t
know about the proxies and doesnt control their life cicle, callbacks are 
registered to the former
evas object in that callback the user can then query EPhysics to make some 
operations on EPhysics
bodies but with soft bodies the user may want to do something but in a specific 
proxy/slice.


> 3) proxy event propagation is enabled with evas_object_image_source_events_set
> 4) callback reacts differently based on which proxy triggered the event.
> 
> 
> Regards
> 
> On Sat, Nov 24, 2012 at 08:54:34PM +0900, ChunEon Park wrote:
> > Btw, does it really source need to care about proxy in the events?
> > Doesn't it enough to add callbacks to proxy directly if you need to care 
> > something?
> > 
> > 
> > 
> > 
> > -Regards, Hermet-
> > 
> > -Original Message-
> > From: "Leandro Dorileo"<dori...@profusion.mobi> 
> > To: "Carsten Haitzler"<ras...@rasterman.com>; 
> > Cc: "Enlightenment developer 
> > list"<enlightenment-devel@lists.sourceforge.net>; 
> > Sent: 2012-11-18 (일) 09:49:49
> > Subject: Re: [E-devel] [PATH] evas: add event source evas object
> > 
> > Hi Raster,
> > 
> > On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> > > On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
> > <dorileo>@profusion.mobi>
> > > said:
> > > 
> > > noo!
> > > 
> > > this breaks abi.
> > > 
> > > never ADD structure members in the middle of a structure - add them at 
> > the
> > > END... always! at least in public api's!
> > 
> > 
> > Ok, attached goes a version considering the ABI thing. Thank you for 
> > reviewing.
> > 
> > 
> > > 
> > > > Hi,
> > > > 
> > > > Attached patch introduces fields to events Evas_Event_Mouse_* 
> > structures
> > > > to hold the event source evas object in case of evas source events
> > > > propagation.
> > > > 
> > > > Regards
> > > > 
> > 
> > 
> > Regards
> > 
> > 
> > -- 
> > Leandro Dorileo
> > ProFUSION embedded systems
> > http://profusion.mobi
> > 
> > --
> > Monitor your physical, virtual and cloud infrastructure from a single
> > web console. Get in-depth insight into apps, servers, databases, vmware,
> > SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> > Pricing starts from $795 for 25 servers or applications!
> > http://p.sf.net/sfu/zoho_dev2dev_nov
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > 
> > --
> > Monitor your physical, virtual and cloud infrastructure from a single
> > web console. Get in-depth insight into apps, servers, databases, vmware,
> > SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> > Pricing starts from $795 for 25 servers or applications!
> > http://p.sf.net/sfu/zoho_dev2dev_nov
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 
> -- 
> Leandro Dorileo
> ProFUSION embedded systems
> http://profusion.mobi

-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2012-11-24 Thread Leandro Dorileo
Hi Hermet,

Think about an use case where a registered callback must reacts differently 
depending on
which proxy triggered the event, like:

1) an evas object gets a callback registered to it
2) proxies are created
3) proxy event propagation is enabled with evas_object_image_source_events_set
4) callback reacts differently based on which proxy triggered the event.


Regards

On Sat, Nov 24, 2012 at 08:54:34PM +0900, ChunEon Park wrote:
> Btw, does it really source need to care about proxy in the events?
> Doesn't it enough to add callbacks to proxy directly if you need to care 
> something?
> 
> 
> 
> 
> -Regards, Hermet-
> 
> -Original Message-
> From: "Leandro Dorileo"<dori...@profusion.mobi> 
> To: "Carsten Haitzler"<ras...@rasterman.com>; 
> Cc: "Enlightenment developer 
> list"<enlightenment-devel@lists.sourceforge.net>; 
> Sent: 2012-11-18 (일) 09:49:49
> Subject: Re: [E-devel] [PATH] evas: add event source evas object
> 
> Hi Raster,
> 
> On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> > On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
> <dorileo>@profusion.mobi>
> > said:
> > 
> > noo!
> > 
> > this breaks abi.
> > 
> > never ADD structure members in the middle of a structure - add them at 
> the
> > END... always! at least in public api's!
> 
> 
> Ok, attached goes a version considering the ABI thing. Thank you for 
> reviewing.
> 
> 
> > 
> > > Hi,
> > > 
> > > Attached patch introduces fields to events Evas_Event_Mouse_* 
> structures
> > > to hold the event source evas object in case of evas source events
> > > propagation.
> > > 
> > > Regards
> > > 
> 
> 
> Regards
> 
> 
> -- 
> Leandro Dorileo
> ProFUSION embedded systems
> http://profusion.mobi
> 
> --
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 
> --
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2012-11-24 Thread ChunEon Park
Btw, does it really source need to care about proxy in the events?
Doesn't it enough to add callbacks to proxy directly if you need to care 
something?




-Regards, Hermet-

-Original Message-
From: "Leandro Dorileo"<dori...@profusion.mobi> 
To: "Carsten Haitzler"<ras...@rasterman.com>; 
Cc: "Enlightenment developer 
list"<enlightenment-devel@lists.sourceforge.net>; 
Sent: 2012-11-18 (일) 09:49:49
Subject: Re: [E-devel] [PATH] evas: add event source evas object

Hi Raster,

On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
<dorileo>@profusion.mobi>
> said:
> 
> noo!
> 
> this breaks abi.
> 
> never ADD structure members in the middle of a structure - add them at the
> END... always! at least in public api's!


Ok, attached goes a version considering the ABI thing. Thank you for reviewing.


> 
> > Hi,
> > 
> > Attached patch introduces fields to events Evas_Event_Mouse_* 
structures
> > to hold the event source evas object in case of evas source events
> > propagation.
> > 
> > Regards
> > 


Regards


-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2012-11-17 Thread Leandro Dorileo
Hi Raster,

On Thu, Nov 15, 2012 at 02:25:38PM +0900, Carsten Haitzler wrote:
> On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
> said:
> 
> noo!
> 
> this breaks abi.
> 
> never ADD structure members in the middle of a structure - add them at the
> END... always! at least in public api's!


Ok, attached goes a version considering the ABI thing. Thank you for reviewing.


> 
> > Hi,
> > 
> > Attached patch introduces fields to events Evas_Event_Mouse_* structures
> > to hold the event source evas object in case of evas source events
> > propagation.
> > 
> > Regards
> > 


Regards


-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi
>From ebc2826222a26354656a457338a829fe5fb664ef Mon Sep 17 00:00:00 2001
From: Leandro Dorileo 
Date: Tue, 13 Nov 2012 11:41:39 -0200
Subject: [PATCH] evas: add event source evas object

This patch introduces fields to event Evas_Event_Mouse_* structures
to hold the event source evas object in case of evas source events
propagation.
---
 src/lib/Evas.h   |  5 +
 src/lib/canvas/evas_events.c | 10 ++
 2 files changed, 15 insertions(+)

diff --git a/src/lib/Evas.h b/src/lib/Evas.h
index e964e75..297e364 100644
--- a/src/lib/Evas.h
+++ b/src/lib/Evas.h
@@ -1103,6 +1103,7 @@ struct _Evas_Event_Mouse_Down /** Mouse button press 
event */
unsigned int  timestamp;
Evas_Event_Flags  event_flags;
Evas_Device  *dev;
+   Evas_Object  *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
 };
 
 struct _Evas_Event_Mouse_Up /** Mouse button release event */
@@ -1120,6 +1121,7 @@ struct _Evas_Event_Mouse_Up /** Mouse button release 
event */
unsigned int  timestamp;
Evas_Event_Flags  event_flags;
Evas_Device  *dev;
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
 };
 
 struct _Evas_Event_Mouse_In /** Mouse enter event */
@@ -1135,6 +1137,7 @@ struct _Evas_Event_Mouse_In /** Mouse enter event */
unsigned int timestamp;
Evas_Event_Flags event_flags;
Evas_Device *dev;
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
 };
 
 struct _Evas_Event_Mouse_Out /** Mouse leave event */
@@ -1150,6 +1153,7 @@ struct _Evas_Event_Mouse_Out /** Mouse leave event */
unsigned int timestamp;
Evas_Event_Flags event_flags;
Evas_Device *dev;
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
 };
 
 struct _Evas_Event_Mouse_Move /** Mouse move event */
@@ -1165,6 +1169,7 @@ struct _Evas_Event_Mouse_Move /** Mouse move event */
unsigned int timestamp;
Evas_Event_Flags event_flags;
Evas_Device *dev;
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
 };
 
 struct _Evas_Event_Mouse_Wheel /** Wheel event */
diff --git a/src/lib/canvas/evas_events.c b/src/lib/canvas/evas_events.c
index ba643b7..b43c1d6 100644
--- a/src/lib/canvas/evas_events.c
+++ b/src/lib/canvas/evas_events.c
@@ -200,6 +200,8 @@ _evas_event_source_mouse_down_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event
 
_transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+   ev->event_src = eo_obj;
+
if (src->proxy.src_event_in)
  src->proxy.src_event_in = eina_list_free(src->proxy.src_event_in);
 
@@ -270,6 +272,8 @@ _evas_event_source_mouse_move_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event
 
_transform_to_src_space(obj, src, &ev->cur.canvas.x, &ev->cur.canvas.y);
 
+   ev->event_src = eo_obj;
+
//FIXME: transform previous coords also.
Eina_List *l;
Evas_Object *eo_child;
@@ -447,6 +451,8 @@ _evas_event_source_mouse_up_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event_M
 
   _transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+  ev->event_src = eo_obj;
+
Eina_List *l;
Evas_Object *eo_child;
Evas_Object_Protected_Data *child;
@@ -771,6 +777,8 @@ _evas_event_source_mouse_in_events(Evas_Object *eo_obj, 
Evas *eo_e,  Evas_Event_
 
   _transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+  ev->event_src = eo_obj;
+
Eina_List *ins = NULL;
if (src->is_smart)
  {
@@ -825,6 +833,8 @@ _evas_event_source_mouse_out_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event_
 
   _transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+  ev->event_src = eo_obj;
+
Eina_List *l;
Evas_Object *eo_child;
Eina_List *copy = evas_event_list_copy(src->proxy.src_event_in);
-- 
1.8.0

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insi

Re: [E-devel] [PATH] evas: add event source evas object

2012-11-14 Thread The Rasterman
On Tue, 13 Nov 2012 11:49:47 -0200 Leandro Dorileo 
said:

noo!

this breaks abi.

never ADD structure members in the middle of a structure - add them at the
END... always! at least in public api's!

> Hi,
> 
> Attached patch introduces fields to events Evas_Event_Mouse_* structures
> to hold the event source evas object in case of evas source events
> propagation.
> 
> Regards
> 
> -- 
> Leandro Dorileo
> ProFUSION embedded systems
> http://profusion.mobi


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


--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATH] evas: add event source evas object

2012-11-13 Thread ChunEon Park
 
I pushed this into my job queue.

 

But, probably I will be not able to see this issue in this week since I have 
much critical issues already.

 

Please understand me. 

 

Thanks.

 
 
-Regards, Hermet- 
 

-Original Message-
From: "Leandro Dorileo"<dori...@profusion.mobi> 
To: <enlightenment-devel@lists.sourceforge.net>; 
Cc: 
Sent: 2012-11-13 (화) 22:49:47
Subject: [E-devel] [PATH] evas: add event source evas object

Hi,

Attached patch introduces fields to events Evas_Event_Mouse_* structures
to hold the event source evas object in case of evas source events
propagation.

Regards

-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATH] evas: add event source evas object

2012-11-13 Thread Leandro Dorileo
Hi,

Attached patch introduces fields to events Evas_Event_Mouse_* structures
to hold the event source evas object in case of evas source events
propagation.

Regards

-- 
Leandro Dorileo
ProFUSION embedded systems
http://profusion.mobi
>From 45c6ec5c8c9e259658008045d90940c3bc95d601 Mon Sep 17 00:00:00 2001
From: Leandro Dorileo 
Date: Tue, 13 Nov 2012 11:41:39 -0200
Subject: [PATCH] evas: add event source evas object

This patch introduces fields to event Evas_Event_Mouse_* structures
to hold the event source evas object in case of evas source events
propagation.
---
 src/lib/Evas.h   |  5 +
 src/lib/canvas/evas_events.c | 10 ++
 2 files changed, 15 insertions(+)

diff --git a/src/lib/Evas.h b/src/lib/Evas.h
index e964e75..5009242 100644
--- a/src/lib/Evas.h
+++ b/src/lib/Evas.h
@@ -1095,6 +1095,7 @@ struct _Evas_Event_Mouse_Down /** Mouse button press 
event */
Evas_Pointoutput; /**< The X/Y location of the cursor */
Evas_Coord_Point  canvas; /**< The X/Y location of the cursor */
 
+   Evas_Object  *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
void *data;
Evas_Modifier*modifiers; /**< modifier keys pressed during the event */
Evas_Lock*locks;
@@ -1112,6 +1113,7 @@ struct _Evas_Event_Mouse_Up /** Mouse button release 
event */
Evas_Pointoutput; /**< The X/Y location of the cursor */
Evas_Coord_Point  canvas; /**< The X/Y location of the cursor */
 
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
void *data;
Evas_Modifier*modifiers; /**< modifier keys pressed during the event */
Evas_Lock*locks;
@@ -1129,6 +1131,7 @@ struct _Evas_Event_Mouse_In /** Mouse enter event */
Evas_Pointoutput; /**< The X/Y location of the cursor */
Evas_Coord_Point  canvas; /**< The X/Y location of the cursor */
 
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
void*data;
Evas_Modifier*modifiers; /**< modifier keys pressed during the event */
Evas_Lock   *locks;
@@ -1144,6 +1147,7 @@ struct _Evas_Event_Mouse_Out /** Mouse leave event */
Evas_Pointoutput; /**< The X/Y location of the cursor */
Evas_Coord_Point  canvas; /**< The X/Y location of the cursor */
 
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
void*data;
Evas_Modifier*modifiers; /**< modifier keys pressed during the event */
Evas_Lock   *locks;
@@ -1159,6 +1163,7 @@ struct _Evas_Event_Mouse_Move /** Mouse move event */
Evas_Positioncur; /**< Current mouse position */
Evas_Positionprev; /**< Previous mouse position */
 
+   Evas_Object *event_src; /**< The Evas Object which actually triggered 
the event, used in cases of proxy event propagation */
void*data;
Evas_Modifier*modifiers; /**< modifier keys pressed during the event */
Evas_Lock   *locks;
diff --git a/src/lib/canvas/evas_events.c b/src/lib/canvas/evas_events.c
index ba643b7..b43c1d6 100644
--- a/src/lib/canvas/evas_events.c
+++ b/src/lib/canvas/evas_events.c
@@ -200,6 +200,8 @@ _evas_event_source_mouse_down_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event
 
_transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+   ev->event_src = eo_obj;
+
if (src->proxy.src_event_in)
  src->proxy.src_event_in = eina_list_free(src->proxy.src_event_in);
 
@@ -270,6 +272,8 @@ _evas_event_source_mouse_move_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event
 
_transform_to_src_space(obj, src, &ev->cur.canvas.x, &ev->cur.canvas.y);
 
+   ev->event_src = eo_obj;
+
//FIXME: transform previous coords also.
Eina_List *l;
Evas_Object *eo_child;
@@ -447,6 +451,8 @@ _evas_event_source_mouse_up_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event_M
 
   _transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+  ev->event_src = eo_obj;
+
Eina_List *l;
Evas_Object *eo_child;
Evas_Object_Protected_Data *child;
@@ -771,6 +777,8 @@ _evas_event_source_mouse_in_events(Evas_Object *eo_obj, 
Evas *eo_e,  Evas_Event_
 
   _transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+  ev->event_src = eo_obj;
+
Eina_List *ins = NULL;
if (src->is_smart)
  {
@@ -825,6 +833,8 @@ _evas_event_source_mouse_out_events(Evas_Object *eo_obj, 
Evas *eo_e, Evas_Event_
 
   _transform_to_src_space(obj, src, &ev->canvas.x, &ev->canvas.y);
 
+  ev->event_src = eo_obj;
+
Eina_List *l;
Evas_Object *eo_child;
Eina_List *copy = evas_event_list_copy(src->proxy.src_event_in);
-- 
1.8.0

--
Monitor you