forked from enlightenment/efl
elementary: fix compile without webkit.
SVN revision: 64040
This commit is contained in:
parent
8ab47f72c4
commit
3db87e69bb
|
@ -2,7 +2,9 @@
|
||||||
* gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE
|
* gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE
|
||||||
*/
|
*/
|
||||||
#include <Elementary.h>
|
#include <Elementary.h>
|
||||||
|
#ifdef HAVE_ELEMENTARY_WEB
|
||||||
#include <EWebKit.h>
|
#include <EWebKit.h>
|
||||||
|
#endif
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "elementary_config.h"
|
# include "elementary_config.h"
|
||||||
#else
|
#else
|
||||||
|
@ -450,10 +452,12 @@ default_content_set(Evas_Object *web)
|
||||||
" </body>\n"
|
" </body>\n"
|
||||||
"</html>\n";
|
"</html>\n";
|
||||||
|
|
||||||
|
#ifdef HAVE_ELEMENTARY_WEB
|
||||||
view = elm_web_webkit_view_get(web);
|
view = elm_web_webkit_view_get(web);
|
||||||
frame = ewk_view_frame_main_get(view);
|
frame = ewk_view_frame_main_get(view);
|
||||||
ewk_frame_contents_set(frame, contents, sizeof(contents) - 1, "text/html",
|
ewk_frame_contents_set(frame, contents, sizeof(contents) - 1, "text/html",
|
||||||
"UTF-8", NULL);
|
"UTF-8", NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue