From: ChunEon Park Date: Wed, 15 Jan 2014 06:00:31 +0000 (+0900) Subject: elementary/ctxpopup - no need to use RESTACK callbacks anymore. X-Git-Tag: v1.9.0-alpha1~200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31f258250ae54ac0d3352115ea3866f660ef4d99;p=platform%2Fupstream%2Felementary.git 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. --- diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 98ca315..afb81df 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -1038,18 +1038,6 @@ _list_resize_cb(void *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) { if (!sd->list) return; @@ -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);