viking

webkit based web browser for Enlightenment
Log | Files | Refs | LICENSE

commit 68433c471fe78cc3969c830dfa4c6185444a6487
parent b7d93613a30db99f00bd228a1e3813d1579e95bd
Author: Kyle Milz <kmilz@ucalgary.ca>
Date:   Mon, 17 Dec 2012 13:59:42 -0700

buffer: remove old load_error() implementation

Diffstat:
Msrc/buffer.c | 25+------------------------
1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/src/buffer.c b/src/buffer.c @@ -604,34 +604,11 @@ load_error_cb(void *data, Evas_Object *webview, void *event_info) return; buffer = eina_strbuf_new(); - eina_strbuf_append_printf(buffer, "<html><body><div style=\"color:#0000aa\">ERROR!</div><br><div>Code: %d<br>Description: %s<br>URL: %s</div></body</html>", + eina_strbuf_append_printf(buffer, "<html><body><div style=\"background-color:rgba(0, 0, 200, 0.5);\">ERROR!</div><br><div>Code: %d<br>Description: %s<br>URL: %s</div></body</html>", error_code, ewk_error_description_get(error), ewk_error_url_get(error)); ewk_view_html_string_load(webview, eina_strbuf_string_get(buffer), 0, ewk_error_url_get(error)); eina_strbuf_free(buffer); - - /* - char *contents; - Ewk_Frame_Load_Error *error = event_info; - - if (error->is_cancellation) - return; - - contents = strdup_printf("<html>\ - <head>\ - <style> h1 { color: blue; } </style>\ - </head>\ - <body>\ - <h1>Error %i</h1>\ - <h2>%s</h2>\ - <h2>%s</h2>\ - </body></html>", - error->code, error->failing_url, error->description); - - ewk_frame_contents_set(error->frame, contents, strlen(contents) - 1, - "text/html", "UTF-8", NULL); - free(contents);\ - */ } static Eina_Bool