forked from enlightenment/enlightenment
always set gadget ids when creating new non-demo gadgets
ensure gadgets aren't pruned on edit end
This commit is contained in:
parent
4e4dd8b7c0
commit
5f75193054
|
@ -2959,12 +2959,13 @@ pager_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
|
||||||
}
|
}
|
||||||
|
|
||||||
EINTERN Evas_Object *
|
EINTERN Evas_Object *
|
||||||
pager_create(Evas_Object *parent, int *id EINA_UNUSED, E_Gadget_Site_Orient orient EINA_UNUSED)
|
pager_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient EINA_UNUSED)
|
||||||
{
|
{
|
||||||
Pager *p;
|
Pager *p;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
|
if (*id == 0) *id = 1;
|
||||||
inst = E_NEW(Instance, 1);
|
inst = E_NEW(Instance, 1);
|
||||||
p = _pager_new(evas_object_evas_get(parent), EINA_FALSE);
|
p = _pager_new(evas_object_evas_get(parent), EINA_FALSE);
|
||||||
p->inst = inst;
|
p->inst = inst;
|
||||||
|
|
|
@ -195,12 +195,13 @@ _gadget_created(void *data, Evas_Object *obj, void *event_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
EINTERN Evas_Object *
|
EINTERN Evas_Object *
|
||||||
start_create(Evas_Object *parent, int *id EINA_UNUSED, E_Gadget_Site_Orient orient)
|
start_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient)
|
||||||
{
|
{
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
if (e_gadget_site_is_desklock(parent)) return NULL;
|
if (e_gadget_site_is_desklock(parent)) return NULL;
|
||||||
|
if (*id == 0) *id = 1;
|
||||||
inst = E_NEW(Instance, 1);
|
inst = E_NEW(Instance, 1);
|
||||||
|
|
||||||
o = elm_layout_add(parent);
|
o = elm_layout_add(parent);
|
||||||
|
|
|
@ -275,10 +275,11 @@ xkbg_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
|
||||||
}
|
}
|
||||||
|
|
||||||
EINTERN Evas_Object *
|
EINTERN Evas_Object *
|
||||||
xkbg_gadget_create(Evas_Object *parent, int *id EINA_UNUSED, E_Gadget_Site_Orient orient)
|
xkbg_gadget_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient)
|
||||||
{
|
{
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
|
if (*id == 0) *id = 1;
|
||||||
inst = E_NEW(Instance, 1);
|
inst = E_NEW(Instance, 1);
|
||||||
inst->o_main = elm_box_add(parent);
|
inst->o_main = elm_box_add(parent);
|
||||||
inst->orient = orient;
|
inst->orient = orient;
|
||||||
|
|
Loading…
Reference in New Issue