commit 26df1aecc2f24a4dd751e125d3bf1a5223b577cf
parent 7b13e60b6191c8eee41872a4eb1a4a537cab4ce0
Author: Kyle Milz <kmilz@ucalgary.ca>
Date: Thu, 27 Sep 2012 17:34:21 -0600
give the http error page some color
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/callbacks.c b/src/callbacks.c
@@ -59,12 +59,16 @@ load_error_cb(void *data, Evas_Object *obj, void *event_info)
if (error->is_cancellation)
return;
- contents = strdup_printf("<html><body>\
+ 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);
+ </body></html>",
+ error->code, error->failing_url, error->description);
ewk_frame_contents_set(error->frame, contents, strlen(contents) - 1,
"text/html", "UTF-8", NULL);