From d100604bba6f8a09b3573cf08926db0202714163 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 28 Jun 2012 22:52:22 +0200 Subject: [PATCH] Use a bigger icon for error pages Fixes: https://bugs.launchpad.net/midori/+bug/699935 --- data/about.css | 2 +- midori/midori-view.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.5