forked from enlightenment/efl
[elementary][access] check previous access object before register
This commit is contained in:
parent
4cd8dbf7a0
commit
f2295d2fef
|
@ -927,6 +927,11 @@ _access_object_register(Evas_Object *obj, Evas_Object *parent)
|
||||||
|
|
||||||
if (!obj) return NULL;
|
if (!obj) return NULL;
|
||||||
|
|
||||||
|
/* check previous access object */
|
||||||
|
ao = evas_object_data_get(obj, "_part_access_obj");
|
||||||
|
if (ao)
|
||||||
|
_access_object_unregister(obj);
|
||||||
|
|
||||||
/* create access object */
|
/* create access object */
|
||||||
ao = _elm_access_add(parent);
|
ao = _elm_access_add(parent);
|
||||||
if (!ao) return NULL;
|
if (!ao) return NULL;
|
||||||
|
|
Loading…
Reference in New Issue