[epiphany] Fix process crashed error page
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix process crashed error page
- Date: Mon, 13 Jan 2014 16:59:51 +0000 (UTC)
commit d9bf10fa3c3a65596984c38202d2de49bb694014
Author: William Jon McCann <william jon mccann gmail com>
Date: Mon Jan 13 11:56:07 2014 -0500
Fix process crashed error page
embed/ephy-web-view.c | 2 +-
src/resources/process-crash.html | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 597a27e..fecf180 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1783,7 +1783,7 @@ ephy_web_view_load_error_page (EphyWebView *view,
page_title = g_strdup_printf (_("Problem displaying ā%sā"), hostname);
msg_title = g_strdup (_("Oops!"));
msg = g_strdup (_("Something went wrong while displaying this page. Please reload or visit a different
page to continue."));
- button_label = NULL;
+ button_label = g_strdup (_("Reload Anyway"));
html_file = g_resources_lookup_data (EPHY_PAGE_TEMPLATE_PROCESS_CRASH, 0, NULL);
diff --git a/src/resources/process-crash.html b/src/resources/process-crash.html
index 819f967..c366fa1 100644
--- a/src/resources/process-crash.html
+++ b/src/resources/process-crash.html
@@ -21,6 +21,12 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>%s</title>
<style type="text/css">%s</style>
+ <script type="text/javascript">
+ function load_anyway()
+ {
+ window.location = '%s';
+ }
+ </script>
</head>
<body>
<div id="container">
@@ -29,6 +35,9 @@
<div class="explanation">
%s
</div>
+ <div class="buttonbox">
+ <button onclick="javascript:load_anyway()">%s</button>
+ </div>
</div>
</div>
</body>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]