From 31f258250ae54ac0d3352115ea3866f660ef4d99 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Wed, 15 Jan 2014 15:00:31 +0900 Subject: [PATCH] elementary/ctxpopup - no need to use RESTACK callbacks anymore. Now bg is smart member of the internal object. let it have a behavior as the member of the smart object. don't need to care it additionally. --- src/lib/elc_ctxpopup.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 98ca31545..afb81df7b 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -1037,18 +1037,6 @@ _list_resize_cb(void *data, elm_layout_sizing_eval(data); } -static void -_ctxpopup_restack_cb(void *data EINA_UNUSED, - Evas *e EINA_UNUSED, - Evas_Object *obj, - void *event_info EINA_UNUSED) -{ - ELM_CTXPOPUP_DATA_GET(obj, sd); - ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); - - evas_object_stack_below(sd->bg, wd->resize_obj); -} - static void _list_del(Elm_Ctxpopup_Smart_Data *sd) { @@ -1141,9 +1129,6 @@ _elm_ctxpopup_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED) priv->dir_priority[3] = ELM_CTXPOPUP_DIRECTION_DOWN; priv->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN; - evas_object_event_callback_add - (obj, EVAS_CALLBACK_RESTACK, _ctxpopup_restack_cb, obj); - priv->box = elm_box_add(obj); evas_object_size_hint_weight_set (priv->box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); -- 2.34.1