]> spindle.queued.net Git - midori/commitdiff
Fix colorful tabs by checking icon, not load status
authorChristian Dywan <christian@twotoasts.de>
Tue, 21 Feb 2012 20:41:23 +0000 (21:41 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 21 Feb 2012 20:47:07 +0000 (21:47 +0100)
Otherwise delayed tabs would never be colored.

extensions/colorful-tabs.c

index bb261d5869f13af983812e7437f5011ad11c2728..9bb84c3b72869423354c5a645c91c6b07208f819 100644 (file)
@@ -48,11 +48,10 @@ colorful_tabs_view_notify_uri_cb (MidoriView*      view,
 
     if (!midori_uri_is_blank (midori_view_get_display_uri (view))
       && (hostname = midori_uri_parse_hostname (midori_view_get_display_uri (view), NULL))
-      && katze_object_get_enum (view, "load-status") == MIDORI_LOAD_FINISHED)
+      && midori_view_get_icon_uri (view) != NULL)
     {
         icon = midori_view_get_icon (view);
-
-        if (midori_view_get_icon_uri (view) != NULL)
+        if (icon != NULL)
         {
             GdkPixbuf* newpix;
             guchar* pixels;