From: Christian Dywan Date: Thu, 28 Jun 2012 20:52:22 +0000 (+0200) Subject: Use a bigger icon for error pages X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d100604bba6f8a09b3573cf08926db0202714163;p=midori Use a bigger icon for error pages Fixes: https://bugs.launchpad.net/midori/+bug/699935 --- diff --git a/data/about.css b/data/about.css index 84484865..df032a32 100644 --- a/data/about.css +++ b/data/about.css @@ -26,7 +26,7 @@ icon { #main { float: right; - width: 90%; + width: 75%; } h1 { diff --git a/midori/midori-view.c b/midori/midori-view.c index 78074a60..4a24fb6b 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1144,10 +1144,14 @@ midori_view_web_view_resource_request_cb (WebKitWebView* web_view, gint real_icon_size; GtkIconInfo* icon_info; const gchar* icon_filename; + static gint icon_size_large_dialog = 0; + + if (!icon_size_large_dialog) + icon_size_large_dialog = gtk_icon_size_register ("large-dialog", 64, 64); if (g_ascii_isalpha (icon_name[0])) icon_size = strstr (icon_name, "dialog") ? - GTK_ICON_SIZE_DIALOG : GTK_ICON_SIZE_BUTTON; + icon_size_large_dialog : GTK_ICON_SIZE_BUTTON; else if (g_ascii_isdigit (icon_name[0])) { guint i = 0;