Ecore_Evas: Fix building of ecore_evas when ews is disabled.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 6 Oct 2011 20:54:46 +0000 (20:54 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 6 Oct 2011 20:54:46 +0000 (20:54 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@63888 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_ews.c

index 47ef447..01afab5 100644 (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
 }