[elementary][access] check previous access object before register

This commit is contained in:
Shinwoo Kim 2016-11-09 21:13:57 +09:00
parent 4cd8dbf7a0
commit f2295d2fef
1 changed files with 5 additions and 0 deletions

View File

@ -927,6 +927,11 @@ _access_object_register(Evas_Object *obj, Evas_Object *parent)
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 */
ao = _elm_access_add(parent);
if (!ao) return NULL;