okay, exposing icon object not such a great idea considering it gets deleted and recreated constantly

SVN revision: 81230
This commit is contained in:
Mike Blumenkrantz 2012-12-18 10:12:47 +00:00
parent d54e0dd00b
commit 1199fc9807
2 changed files with 2 additions and 3 deletions

View File

@ -4759,7 +4759,7 @@ _e_fm2_icon_realize(E_Fm2_Icon *ic)
/* actually create evas objects etc. */
ic->realized = EINA_TRUE;
evas_event_freeze(evas_object_evas_get(ic->sd->obj));
ic->info.obj = ic->obj = edje_object_add(evas_object_evas_get(ic->sd->obj));
ic->obj = edje_object_add(evas_object_evas_get(ic->sd->obj));
edje_object_freeze(ic->obj);
evas_object_smart_member_add(ic->obj, ic->sd->obj);
evas_object_stack_below(ic->obj, ic->sd->drop);
@ -4861,7 +4861,7 @@ _e_fm2_icon_unrealize(E_Fm2_Icon *ic)
/* delete evas objects */
ic->realized = EINA_FALSE;
evas_object_del(ic->obj);
ic->info.obj = ic->obj = NULL;
ic->obj = NULL;
evas_object_del(ic->obj_icon);
ic->obj_icon = NULL;
}

View File

@ -128,7 +128,6 @@ struct _E_Fm2_Icon_Info
{
Evas_Object *fm;
E_Fm2_Icon *ic;
Evas_Object *obj;
const char *file;
const char *mime;
const char *label;