forked from enlightenment/efl
datetime_input_ctxpopup: delete previously created ctxpopup if theme is broken
Summary: Or else it will create dozens of ctxpopup's if user applied wrong or broken theme that do not remove ctxpopups at all (lack of programs/signals or whatever brokes ctxpopup behaviour) @fix Reviewers: cedric, reutskiy.v.v, NikaWhite, raster, an.kroitor, wc, Hermet Reviewed By: Hermet Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D3885
This commit is contained in:
parent
172cfa0f04
commit
a69903e3b2
|
@ -145,6 +145,8 @@ _field_clicked_cb(void *data, const Eo_Event *event)
|
|||
|
||||
snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(event->obj));
|
||||
|
||||
if (ctx_mod->ctxpopup)
|
||||
evas_object_del(ctx_mod->ctxpopup);
|
||||
ctx_mod->ctxpopup = elm_ctxpopup_add(event->obj);
|
||||
elm_object_style_set(ctx_mod->ctxpopup, buf);
|
||||
elm_ctxpopup_horizontal_set(ctx_mod->ctxpopup, EINA_TRUE);
|
||||
|
|
Loading…
Reference in New Issue