add container variant of e_win_evas_object_win_get: e_container_evas_object_container_get

SVN revision: 78788
This commit is contained in:
Mike Blumenkrantz 2012-11-01 14:14:10 +00:00
parent 54330a3ca6
commit 87217a841b
2 changed files with 17 additions and 0 deletions

View File

@ -880,6 +880,21 @@ e_container_all_thaw(void)
}
}
EAPI E_Container *
e_container_evas_object_container_get(Evas_Object *obj)
{
Evas *evas;
Evas_Object *wobj;
E_Container *con;
if (!obj) return NULL;
evas = evas_object_evas_get(obj);
wobj = evas_object_name_find(evas, "e/desktop/background");
if (!wobj) return NULL;
con = evas_object_data_get(wobj, "e_container");
return con;
}
/* local subsystem functions */
static void
_e_container_free(E_Container *con)

View File

@ -153,6 +153,8 @@ EAPI void e_container_border_stack_below(E_Border *bd, E_Border *b
EAPI void e_container_all_freeze(void);
EAPI void e_container_all_thaw(void);
EAPI E_Container *e_container_evas_object_container_get(Evas_Object *obj);
extern EAPI int E_EVENT_CONTAINER_RESIZE;
#endif