it's still your code (the hover), so as raster said... :-) it's not about "you not should use this", but more like your should not force everybody to use it, as it's not required.... in the case you mentioned, you have more objects, but they all have the same generator code, thus same function address. It would not happen if you created 2 hover implementations, one in elementary and another in ewl, for example. Maybe we're not clear, is it better now?
On Fri, Oct 16, 2009 at 11:58 AM, Atton Jonathan <[email protected]> wrote: > Create 2 hovers with the same parent, delete the first created and then > resize the parent, the callback will be called with the first hover as data. > > 2009/10/16 Carsten Haitzler <[email protected]> > >> On Fri, 16 Oct 2009 08:59:00 -0400 Atton Jonathan < >> [email protected]> >> said: >> >> > if somewhere we delete the wrong callback because we do not use the full >> > method we can have a bug too. This code can delete my callback :/ >> >> gustavo's right add the _full call. as for "we delete the wrong callback" - >> this wont happen unless its YOUR code. the function pointer is what is >> used. a >> library has no access or knolwedge of your functions - same with your code >> - u >> dont know the callback functions hooked by the lib. it wont have a problem. >> >> > 2009/10/16 Gustavo Sverzut Barbieri <[email protected]> >> > >> > > no, so as i did with evas event callbacks... add a _full() version >> > > that takes more parameters so we can have both. >> > > >> > > On 10/16/09, Cedric BAIL <[email protected]> wrote: >> > > > On Fri, Oct 16, 2009 at 1:56 PM, Atton Jonathan >> > > > <[email protected]> wrote: >> > > >> evas_object_event_callback_del() >> > > >> This function does not use a unique key to find the correct callback >> > > item. >> > > >> I >> > > >> think we should add the data in the comparison. >> > > >> >> > > >> The problem appears if we create 2 elm hover, they add some >> callbacks on >> > > >> the >> > > >> parent. When we delete the first created hover we delete the >> callbacks >> > > of >> > > >> the second hover. Then if we resize the parent it will called the >> wrong >> > > >> callbacks. >> > > > >> > > > I will say fix the API, and fix all svn users. Of course, wait for >> svn >> > > > unfreeze before breaking the svn. >> > > > -- >> > > > Cedric BAIL >> > > > >> > > > >> > > >> ------------------------------------------------------------------------------ >> > > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> > > > is the only developer event you need to attend this year. Jumpstart >> your >> > > > developing skills, take BlackBerry mobile applications to market and >> stay >> > > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> > > > http://p.sf.net/sfu/devconference >> > > > _______________________________________________ >> > > > enlightenment-devel mailing list >> > > > [email protected] >> > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > > > >> > > >> > > >> > > -- >> > > Gustavo Sverzut Barbieri >> > > http://profusion.mobi embedded systems >> > > -------------------------------------- >> > > MSN: [email protected] >> > > Skype: gsbarbieri >> > > Mobile: +55 (19) 9225-2202 >> > > >> > >> > >> > >> > -- >> > Regards. >> > >> ------------------------------------------------------------------------------ >> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> > is the only developer event you need to attend this year. Jumpstart your >> > developing skills, take BlackBerry mobile applications to market and stay >> > ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> > http://p.sf.net/sfu/devconference >> > _______________________________________________ >> > enlightenment-devel mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > >> >> >> -- >> ------------- Codito, ergo sum - "I code, therefore I am" -------------- >> The Rasterman (Carsten Haitzler) [email protected] >> >> > > > -- > Regards. > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
