]> spindle.queued.net Git - midori/commitdiff
Use a bigger icon for error pages
authorChristian Dywan <christian@twotoasts.de>
Thu, 28 Jun 2012 20:52:22 +0000 (22:52 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 28 Jun 2012 20:52:22 +0000 (22:52 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/699935
data/about.css
midori/midori-view.c

index 8448486590f0f4dde2e5d03266ccbb0cfd396bc1..df032a328824069974ff29bea562003371352b25 100644 (file)
@@ -26,7 +26,7 @@ icon {
 
 #main {
    float: right;
-   width: 90%;
+   width: 75%;
 }
 
 h1 {
index 78074a60fceccbbb68337b3d4619ec2c561bbcf2..4a24fb6bdc06e08b3cf99d9a8b5a8804002b09e2 100644 (file)
@@ -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;