On Wed, Nov 12, 2008 at 4:39 PM, Tim Felgentreff <[EMAIL PROTECTED]> wrote: > Hi, could anybody enlighten me on how to properly use > evas_smart_class_new? > A week ago I send in a patch for Rage which replaced evas_smart_new > calls. I simply created an evas_smart_class with the fields filled so > that it just copies the call to evas_smart_new. Then I used > evas_smart_class_new instead of evas_smart_new. The code didn't work at > first, but then I simply made my evas_smart_class static and it worked > fine on revision 37448. > I updated E yesterday and my simple solution stopped working, giving me > the same bug I encountered before I declared the evas_smart_classes in > my patch as static. So I guess I must have misunderstood how > evas_smart_class_new is supposed to be used. Can anybody give me some > hints as to what I have to consider here? > Thanks in advance
Possible it's something else, Evas_Smart_Class should be alive during class lifetime, so you either allocate it or you make it static as you did, so I suppose your code is correct, just make sure problem is not elsewhere, check with valgrind. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [EMAIL PROTECTED] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel