On Tuesday, July 31, 2012, Eunmi Lee wrote:

> Hello, EFL folks,
> I have a problem during making the Evas_Object, so I really need your help.
>
> What I want to do is to create Evas_Object with specific data.
> That means, I need to pass data which is used in the
> Evas_Smart_Class's add function.
>
> I'm using "evas_object_smart_add()" to create Evas_Object, but it can
> not accept the values except Evas and Evas_Smart.
> So, I've tried to pass data using Smart_Class's data field, but I failed.
> Because I can not find the way to free the allocated Smart_Class after
> I create Smart_Class and allocate memory for that instead using
> "static" keyword. and I don't know it is right way to not create
> Smart_Class without "static" keyword.
>
> I've tried to find the example which creates the Evas_Object with
> specific data, but I could not find.
> So, Would you tell me the way to pass the data when creating the
> Evas_Object?
>
> Below URL is my patch to do above things.
> https://bugs.webkit.org/show_<https://bugs.webkit.org/show_bug.cgi?id=90054>
> bug.cgi?id=90054 <https://bugs.webkit.org/show_bug.cgi?id=90054>


It is wrong and you should never, ever, try to do it. It's upside down
thinking. Change your usage and set it after evas_object_smart_add()
returns.

See elementary. It's constructors are elm_CLASS_add(Evas_Object *parent),
it calls smart add and then sets the parent



> BR,
> Eunmi Lee
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net <javascript:;>
> 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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to