aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2011-10-06 20:54:46 +0000
committerChristopher Michael <cpmichael1@comcast.net>2011-10-06 20:54:46 +0000
commitf06f66b0a9ba5ada920f161f47de43ace8e1310f (patch)
tree7d2098debdb885d52e57e7dcdbe2ecf6965db018 /legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
parenttry and make newgl work again... fail! why does glx hate me? (diff)
downloadefl-f06f66b0a9ba5ada920f161f47de43ace8e1310f.tar.gz
Ecore_Evas: Fix building of ecore_evas when ews is disabled.
SVN revision: 63888
Diffstat (limited to 'legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
index 47ef447481..01afab52d2 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_ews.c
@@ -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
}