[Xfce4-commits] <midori:master> Don't try to load icons of special pages

Christian Dywan noreply at xfce.org
Mon Mar 14 01:04:01 CET 2011


Updating branch refs/heads/master
         to 7ac71b6bba5e32073d353a5b72ec395109895360 (commit)
       from f17751b91a1c7a93dea8741829a0ad495ba90ee1 (commit)

commit 7ac71b6bba5e32073d353a5b72ec395109895360
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Mar 14 01:03:37 2011 +0100

    Don't try to load icons of special pages

 midori/midori-view.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 4749c9d..57345e1 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -899,7 +899,7 @@ _midori_web_view_load_icon (MidoriView* view)
             g_free (icon_file);
             katze_assign (view->icon_uri, icon_uri);
         }
-        else
+        else if (!view->special)
         {
             priv = g_slice_new (KatzeNetIconPriv);
             priv->icon_file = icon_file;
@@ -4040,17 +4040,13 @@ midori_view_set_uri (MidoriView*  view,
         #if WEBKIT_CHECK_VERSION (1, 1, 6)
         else if (g_str_has_prefix (uri, "pause:"))
         {
-            gchar* title;
-
-            title = g_strdup_printf ("%s", view->title);
             katze_assign (view->uri, g_strdup (&uri[6]));
             midori_view_display_error (
-                view, view->uri, title,
+                view, view->uri, view->title,
                 _("Page loading delayed"),
                 _("Loading delayed either due to a recent crash or startup preferences."),
                 _("Load Page"),
                 NULL);
-            g_free (title);
             katze_item_set_uri (view->item, uri);
             g_object_notify (G_OBJECT (view), "uri");
         }



More information about the Xfce4-commits mailing list