Fix e_menu trying to swallow an object from a different canvas

_e_menu_realize was trying to swallow the menu->container_object into
the menu->bg_object, but the menu->bg_object was being created on the
compositor canvas, and the container object was being created on the
e_comp->elm_win.

With recent EFL changes, this causes an abort inside Evas.

To fix this, set the menu->evas to be the Evas from the e_comp->elm_win.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-10-21 10:26:18 -04:00
parent e931e86161
commit 7b79e03937
1 changed files with 1 additions and 1 deletions

View File

@ -1608,7 +1608,7 @@ _e_menu_realize(E_Menu *m)
if (m->parent_item && m->parent_item->menu)
m->zone = m->parent_item->menu->zone;
if (!m->zone) return; //menu not ready!
m->evas = e_comp->evas;
m->evas = evas_object_evas_get(e_comp->elm);
evas_event_freeze(m->evas);
o = edje_object_add(m->evas);