From: Christian Dywan Date: Fri, 28 Oct 2011 21:22:03 +0000 (+0200) Subject: Don't color tabs of blank/ special pages X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5244bda781f7789391f9058b2a9da81d8e2e3a87;p=midori Don't color tabs of blank/ special pages --- diff --git a/extensions/colorful-tabs.c b/extensions/colorful-tabs.c index 672797e6..1726e290 100644 --- a/extensions/colorful-tabs.c +++ b/extensions/colorful-tabs.c @@ -46,7 +46,8 @@ colorful_tabs_view_notify_uri_cb (MidoriView* view, label = midori_view_get_proxy_tab_label (view); - if ((hostname = midori_uri_parse (midori_view_get_display_uri (view), NULL)) + if (!midori_uri_is_blank (midori_view_get_display_uri (view)) + && (hostname = midori_uri_parse (midori_view_get_display_uri (view), NULL)) && katze_object_get_enum (view, "load-status") == MIDORI_LOAD_FINISHED) { icon = midori_view_get_icon (view);