Return associated object.

SVN revision: 37316
This commit is contained in:
Gustavo Sverzut Barbieri 2008-10-29 19:50:24 +00:00
parent 9f45e76c20
commit fe94f35f38
2 changed files with 14 additions and 2 deletions

View File

@ -307,8 +307,9 @@ EAPI int ecore_evas_ignore_events_get(Ecore_Evas *ee);
EAPI void *ecore_evas_window_get(Ecore_Evas *ee);
EAPI int ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags);
EAPI int ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj);
EAPI int ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags);
EAPI int ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj);
EAPI Evas_Object *ecore_evas_object_associate_get(Ecore_Evas *ee);
#ifdef __cplusplus
}

View File

@ -312,6 +312,17 @@ ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj)
return 1;
}
EAPI Evas_Object *
ecore_evas_object_associate_get(Ecore_Evas *ee)
{
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS, __FUNCTION__);
return NULL;
}
return _ecore_evas_associate_get(ee);
}
static void
_ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags)
{