evas evas_object_smart.c: Reverted smart callback calling sequence.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Aug 2011 09:18:39 +0000 (09:18 +0000)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Thu, 25 Aug 2011 11:39:07 +0000 (20:39 +0900)
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

src/lib/canvas/evas_object_smart.c

index e8c351f..4a305f0 100644 (file)
@@ -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;
 }