elementary: fix compile without webkit.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 13 Oct 2011 07:38:27 +0000 (07:38 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 13 Oct 2011 07:38:27 +0000 (07:38 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64040 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/examples/web_example.c

index f2b72f2..ac80bd6 100644 (file)
@@ -2,7 +2,9 @@
  * gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE
  */
 #include <Elementary.h>
+#ifdef HAVE_ELEMENTARY_WEB
 #include <EWebKit.h>
+#endif
 #ifdef HAVE_CONFIG_H
 # include "elementary_config.h"
 #else
@@ -450,10 +452,12 @@ default_content_set(Evas_Object *web)
       "  </body>\n"
       "</html>\n";
 
+#ifdef HAVE_ELEMENTARY_WEB
    view = elm_web_webkit_view_get(web);
    frame = ewk_view_frame_main_get(view);
    ewk_frame_contents_set(frame, contents, sizeof(contents) - 1, "text/html",
                           "UTF-8", NULL);
+#endif
 }
 
 int