[epiphany] web-view: make network error page less apologetic
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-view: make network error page less apologetic
- Date: Sun, 18 Sep 2016 14:36:32 +0000 (UTC)
commit e733ccecd96c53a5f3e6a00209a7d1c02c7d13b3
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Sep 18 09:34:15 2016 -0500
web-view: make network error page less apologetic
Unlike crashes, network errors are rarely ever our fault. Use
network-error-symbolic instead of the sad computer, and ditch the "oops"
text.
embed/ephy-web-view.c | 4 +++-
src/epiphany.gresource.xml | 1 +
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 5777656..d94a0df 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1768,7 +1768,7 @@ ephy_web_view_load_error_page (EphyWebView *view,
page_title = g_strdup_printf (_("Problem Loading Page"));
/* Message title when a site cannot be loaded due to a network error. */
- msg_title = g_strdup (_("Oops! Unable to display this website"));
+ msg_title = g_strdup (_("Unable to display this website"));
/* Message body when a site cannot be loaded due to a network error. */
msg_body = g_strdup_printf (_("<p>The site at <strong>%s</strong> seems "
@@ -1788,6 +1788,8 @@ ephy_web_view_load_error_page (EphyWebView *view,
button_action = g_strdup_printf ("window.location = '%s';", uri);
/* Mnemonic for the Reload button on browser error pages. */
button_accesskey = C_("reload-access-key", "R");
+
+ icon_name = "network-error-symbolic.png";
break;
case EPHY_WEB_VIEW_ERROR_PAGE_CRASH:
/* Page title when a site cannot be loaded due to a page crash error. */
diff --git a/src/epiphany.gresource.xml b/src/epiphany.gresource.xml
index 5f60f4e..dbf2afb 100644
--- a/src/epiphany.gresource.xml
+++ b/src/epiphany.gresource.xml
@@ -20,6 +20,7 @@
<file>missing-thumbnail.png</file>
<file>channel-insecure-symbolic.png</file>
<file>computer-fail-symbolic.png</file>
+ <file>network-error-symbolic.png</file>
<file alias="page-templates/about.css" compressed="true">about.css</file>
<file compressed="true">prism.css</file>
<file compressed="true">prism.js</file>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]