forked from enlightenment/efl
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.
This commit is contained in:
parent
2f846fca27
commit
8f59ba7a1f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue