aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-09 23:45:30 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-09 23:45:30 +0800
commit3b390cf6bfc3249ea6af8736e99315e614ea8ef8 (patch)
tree3b94e3910cbc3c0d12e345bf1b9866c7adc9be8b /embed
parent62b4c1eff3e950faa21ecdde688bd8a1379853ec (diff)
downloadgsoc2013-epiphany-3b390cf6bfc3249ea6af8736e99315e614ea8ef8.tar
gsoc2013-epiphany-3b390cf6bfc3249ea6af8736e99315e614ea8ef8.tar.gz
gsoc2013-epiphany-3b390cf6bfc3249ea6af8736e99315e614ea8ef8.tar.bz2
gsoc2013-epiphany-3b390cf6bfc3249ea6af8736e99315e614ea8ef8.tar.lz
gsoc2013-epiphany-3b390cf6bfc3249ea6af8736e99315e614ea8ef8.tar.xz
gsoc2013-epiphany-3b390cf6bfc3249ea6af8736e99315e614ea8ef8.tar.zst
gsoc2013-epiphany-3b390cf6bfc3249ea6af8736e99315e614ea8ef8.zip
Make error page nicer; code by Adam Hooper.
2005-07-09 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyProtocolHandler.cpp: Make error page nicer; code by Adam Hooper.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/EphyProtocolHandler.cpp44
1 files changed, 13 insertions, 31 deletions
diff --git a/embed/mozilla/EphyProtocolHandler.cpp b/embed/mozilla/EphyProtocolHandler.cpp
index db978cbb3..ff98fdb53 100644
--- a/embed/mozilla/EphyProtocolHandler.cpp
+++ b/embed/mozilla/EphyProtocolHandler.cpp
@@ -430,32 +430,25 @@ EphyProtocolHandler::CreateErrorPage(nsIURI *aErrorURI,
Write (stream,
"</title>\n"
"<style type=\"text/css\">\n"
- "html {\n"
- "background-color: white;\n"
- "color: WindowText;\n"
- "}\n"
+ "div#body {\n"
+ "position: absolute;\n"
+ "top: 12px;\n"
+ "right: 12px;\n"
+ "bottom: 12px;\n"
+ "left: 12px;\n"
+ "overflow: auto;\n"
+
+ "background: -moz-dialog url('moz-icon://stock/gtk-dialog-error?size=dialog') no-repeat 12px 12px;\n"
+ "color: -moz-dialogtext;\n"
+ "font: message-box;\n"
+ "border: 1px solid -moz-dialogtext;\n"
- "body {\n"
- "background-color: Window;\n"
- "border: 1px solid black;\n"
- "margin: 12px;\n"
"padding: 12px 12px 12px 72px;\n"
"}\n"
"h1 {\n"
"margin: 0;\n"
"font-size: 1.2em;\n"
- "font-weight: bold;\n"
- "}\n"
-
- "div#img {\n"
- "position: absolute;\n"
- "top: 25px;\n"
- "left: 25px;\n"
- "}\n"
-
- "p {\n"
- "margin: 1em 0 0;\n"
"}\n"
"</style>\n"
"</head>\n"
@@ -464,18 +457,7 @@ EphyProtocolHandler::CreateErrorPage(nsIURI *aErrorURI,
gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL ? "rtl" : "ltr");
Write (stream,
"\">\n"
- "<div id=\"img\"><img src=\"moz-icon://stock/gtk-dialog-error?size=dialog\" alt=\"");
-
- /* get alt text */
- GtkStockItem item;
- if (gtk_stock_lookup (GTK_STOCK_DIALOG_ERROR, &item) && item.label)
- {
- WriteHTMLEscape (stream, item.label);
- }
-
- Write (stream,
- ")\" /></div>\n"
- "<div id=\"text\">\n"
+ "<div id=\"body\">"
"<h1>");
WriteHTMLEscape (stream, primary);
Write (stream,