use a non-conflicting data item for comp mirror creation

This commit is contained in:
Mike Blumenkrantz 2014-09-01 14:22:44 -04:00
parent 74c3e0a979
commit 8a10f288ad
1 changed files with 3 additions and 2 deletions

View File

@ -3350,7 +3350,8 @@ e_comp_object_util_mirror_add(Evas_Object *obj)
SOFT_ENTRY(NULL);
cw = evas_object_data_get(obj, "comp_object");
if (!cw)
cw = evas_object_data_get(obj, "comp_mirror");
if (!cw)
{
o = evas_object_image_filled_add(evas_object_evas_get(obj));
@ -3368,7 +3369,7 @@ e_comp_object_util_mirror_add(Evas_Object *obj)
cw->obj_mirror = eina_list_append(cw->obj_mirror, o);
evas_object_event_callback_add(o, EVAS_CALLBACK_DEL, _e_comp_object_cb_mirror_del, cw);
evas_object_data_set(o, "E_Client", cw->ec);
evas_object_data_set(o, "comp_object", cw);
evas_object_data_set(o, "comp_mirror", cw);
evas_object_image_alpha_set(o, cw->ec->argb || (!!cw->ec->shape_rects));
evas_object_image_size_set(o, w, h);