diff options
author | Xan Lopez <xlopez@igalia.com> | 2011-06-10 08:48:26 +0800 |
---|---|---|
committer | Xan Lopez <xlopez@igalia.com> | 2011-06-10 08:49:41 +0800 |
commit | 46bc5c4ec06f35b545af7aa0ebf0ea09da7df07d (patch) | |
tree | 024a1739eb2a1eb9aa40416ffab923ebcaea7046 | |
parent | aca7c30d20069031c132b1aeb34b62bfd445153e (diff) | |
download | gsoc2013-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
-rw-r--r-- | data/pages/about.css | 14 | ||||
-rw-r--r-- | lib/ephy-request-about.c | 27 |
2 files changed, 34 insertions, 7 deletions
diff --git a/data/pages/about.css b/data/pages/about.css index 2937047eb..a55485ce1 100644 --- a/data/pages/about.css +++ b/data/pages/about.css @@ -28,4 +28,16 @@ { background: #d0dafd; color:#339; -}
\ No newline at end of file +} + +#ephytext { + margin-top: 15%; + font-size: 1.3em; + text-align: center; +} + +#from { + margin-top: 1em; + font-size: 1.5em; + text-align: right; +} 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); } |