evas_callback: Remove callbacks in reverse order with evas_event_callback_del 94/54694/1
authorSung-Taek Hong <sth253.hong@samsung.com>
Thu, 17 Dec 2015 07:54:02 +0000 (16:54 +0900)
committerSung-Taek Hong <sth253.hong@samsung.com>
Thu, 17 Dec 2015 07:54:05 +0000 (16:54 +0900)
Summary:

 - This function is deprecated, because del_full should be used instead.
 - Still, the documentation specifies in which order the callbacks should
 - be deleted.

Change-Id: Ie05155abafd3d73425e1b73bc85090ec98cd06fa
Signed-off-by: Sung-Taek Hong <sth253.hong@samsung.com>
src/lib/evas/canvas/evas_callbacks.c

index 224b1e3..c86eb61 100644 (file)
@@ -424,7 +424,7 @@ evas_event_callback_del(Evas *eo_e, Evas_Callback_Type type, Evas_Event_Cb func)
 
    if (!e->callbacks) return NULL;
 
-   EINA_INLIST_FOREACH(e->callbacks, info)
+   EINA_INLIST_REVERSE_FOREACH(e->callbacks, info)
      {
         if ((info->func == func) && (info->type == type))
           {