From 3db87e69bb285c59002c4560a4e658403fb1c284 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 13 Oct 2011 07:38:27 +0000 Subject: [PATCH] elementary: fix compile without webkit. SVN revision: 64040 --- legacy/elementary/src/examples/web_example.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/elementary/src/examples/web_example.c b/legacy/elementary/src/examples/web_example.c index f2b72f2ed5..ac80bd685d 100644 --- a/legacy/elementary/src/examples/web_example.c +++ b/legacy/elementary/src/examples/web_example.c @@ -2,7 +2,9 @@ * gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE */ #include +#ifdef HAVE_ELEMENTARY_WEB #include +#endif #ifdef HAVE_CONFIG_H # include "elementary_config.h" #else @@ -450,10 +452,12 @@ default_content_set(Evas_Object *web) " \n" "\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