forked from enlightenment/enlightenment
set gadget added flag any time a gadget is created or wizarded
ensure that desktop gadget editor doesn't exit when attempting to add subsequent gadgets
This commit is contained in:
parent
3ef09d6cc8
commit
30b07c6558
|
@ -294,6 +294,7 @@ _gadget_object_create(E_Gadget_Config *zgc)
|
||||||
if (t->wizard)
|
if (t->wizard)
|
||||||
{
|
{
|
||||||
t->wizard(_gadget_wizard_end, zgc);
|
t->wizard(_gadget_wizard_end, zgc);
|
||||||
|
added = 1;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -303,6 +304,7 @@ _gadget_object_create(E_Gadget_Config *zgc)
|
||||||
*/
|
*/
|
||||||
g = t->cb(zgc->site->layout, &zgc->id, zgc->site->orient);
|
g = t->cb(zgc->site->layout, &zgc->id, zgc->site->orient);
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(g, EINA_FALSE);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(g, EINA_FALSE);
|
||||||
|
added = 1;
|
||||||
|
|
||||||
zgc->e_obj_inherit = E_OBJECT_ALLOC(E_Object, E_GADGET_TYPE, _gadget_object_free);
|
zgc->e_obj_inherit = E_OBJECT_ALLOC(E_Object, E_GADGET_TYPE, _gadget_object_free);
|
||||||
e_object_data_set(zgc->e_obj_inherit, g);
|
e_object_data_set(zgc->e_obj_inherit, g);
|
||||||
|
|
Loading…
Reference in New Issue