From: seoz Date: Thu, 25 Aug 2011 09:18:39 +0000 (+0000) Subject: evas evas_object_smart.c: Reverted smart callback calling sequence. X-Git-Tag: 2.0_alpha~240^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0eb7fec0f296e09df6525cc3c6317f928f83265;p=framework%2Fuifw%2Fevas.git evas evas_object_smart.c: Reverted smart callback calling sequence. Now, smart callback is prepended among the same priorities. After the discussion with hermet and raster. I fixed this because I think it's better keeping the default behavior even we have new priority option. This is for evas backward compatibility and for the world peace. Although I know there is no official policy and it's not recommended to rely on the smart callback calling sequence in application, I really hope evas needs to have compatibility. Otherwise we need to adopt the new policy in next version of evas. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@62792 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_smart.c b/src/lib/canvas/evas_object_smart.c index e8c351f..4a305f0 100644 --- a/src/lib/canvas/evas_object_smart.c +++ b/src/lib/canvas/evas_object_smart.c @@ -333,8 +333,6 @@ _callback_priority_cmp(const void *_a, const void *_b) b = (const Evas_Smart_Callback *) _b; if (a->priority < b->priority) return -1; - else if (a->priority == b->priority) - return 0; else return 1; }