From 2a785382af8d67e1ff009bd95968eca46b0bc34f Mon Sep 17 00:00:00 2001 From: seoz Date: Thu, 25 Aug 2011 09:18:39 +0000 Subject: [PATCH] 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 --- src/lib/canvas/evas_object_smart.c | 2 -- 1 file changed, 2 deletions(-) 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; } -- 2.7.4