aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-06-10 08:48:26 +0800
committerXan Lopez <xlopez@igalia.com>2011-06-10 08:49:41 +0800
commit46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d (patch)
tree024a1739eb2a1eb9aa40416ffab923ebcaea7046 /lib
parentaca7c30d20069031c132b1aeb34b62bfd445153e (diff)
downloadgsoc2013-epiphany-46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d.tar
gsoc2013-epiphany-46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d.tar.gz
gsoc2013-epiphany-46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d.tar.bz2
gsoc2013-epiphany-46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d.tar.lz
gsoc2013-epiphany-46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d.tar.xz
gsoc2013-epiphany-46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d.tar.zst
gsoc2013-epiphany-46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d.zip
Blast from the past
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-request-about.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/lib/ephy-request-about.c b/lib/ephy-request-about.c
index 5cd55b9f1..413bdb4ed 100644
--- a/lib/ephy-request-about.c
+++ b/lib/ephy-request-about.c
@@ -69,15 +69,15 @@ ephy_request_about_send (SoupRequest *request,
if (!about->priv->css_style)
read_css_style (about);
- g_string_append_printf (data_str, "<head><title>%s</title>" \
- "<style type=\"text/css\">%s</style></head><body>",
- _("Installed plugins"),
- about->priv->css_style);
-
if (!g_strcmp0 (uri->path, "plugins")) {
WebKitWebPluginDatabase* database = webkit_get_web_plugin_database ();
GSList *plugin_list, *p;
+ g_string_append_printf (data_str, "<head><title>%s</title>" \
+ "<style type=\"text/css\">%s</style></head><body>",
+ _("Installed plugins"),
+ about->priv->css_style);
+
g_string_append_printf(data_str, "<h1>%s</h1>", _("Installed plugins"));
plugin_list = webkit_web_plugin_database_get_plugins (database);
for (p = plugin_list; p; p = p->next) {
@@ -109,9 +109,24 @@ ephy_request_about_send (SoupRequest *request,
g_string_append(data_str, "</tbody></table>");
}
webkit_web_plugin_database_plugins_list_free (plugin_list);
+ g_string_append(data_str, "</body>");
+ } else if (!g_strcmp0 (uri->path, "epiphany")) {
+ g_string_append_printf (data_str, "<head><title>Epiphany</title>" \
+ "<style type=\"text/css\">%s</style></head>" \
+ "<body style=\"background: #3369FF; color: white; font-style: italic;\">",
+ about->priv->css_style);
+
+ g_string_append (data_str, "<div id=\"ephytext\">" \
+ "Il semble que la perfection soit atteinte non quand il n'y a plus rien à" \
+ "ajouter, mais quand il n'y a plus rien à retrancher." \
+ "</div>" \
+ "<div id=\"from\">" \
+ "<!-- Terre des Hommes, III: L'Avion, p. 60 -->" \
+ "Antoine de Saint-Exupéry" \
+ "</div></body>");
}
- g_string_append(data_str, "</body></html>");
+ g_string_append(data_str, "</html>");
about->priv->content_length = data_str->len;
return g_memory_input_stream_new_from_data (g_string_free(data_str, false), about->priv->content_length, g_free);
}