Ecore_Evas: Fix building of ecore_evas when ews is disabled.

SVN revision: 63888
This commit is contained in:
Christopher Michael 2011-10-06 20:54:46 +00:00
parent 7c7f8803f5
commit f06f66b0a9
1 changed files with 11 additions and 0 deletions

View File

@ -1335,19 +1335,26 @@ ecore_evas_ews_evas_get(void)
EAPI Evas_Object *
ecore_evas_ews_background_get(void)
{
#ifdef BUILD_ECORE_EVAS_EWS
return _ews_bg;
#else
return NULL;
#endif
}
#ifdef BUILD_ECORE_EVAS_EWS
static void
_ecore_evas_ews_background_free(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
{
_ews_bg = NULL;
ecore_evas_ews_background_set(NULL);
}
#endif
EAPI void
ecore_evas_ews_background_set(Evas_Object *o)
{
#ifdef BUILD_ECORE_EVAS_EWS
if ((o) && (o == _ews_bg)) return;
if (_ews_bg)
@ -1385,6 +1392,10 @@ ecore_evas_ews_background_set(Evas_Object *o)
}
_ews_bg = o;
#else
return;
(void)o;
#endif
}