[Xfce4-commits] <midori:master> Don't color tabs of blank/ special pages

Christian Dywan noreply at xfce.org
Fri Oct 28 23:26:01 CEST 2011


Updating branch refs/heads/master
         to 5244bda781f7789391f9058b2a9da81d8e2e3a87 (commit)
       from cd8cb11ea2ef415543345db73dd7effb3f5aaa4b (commit)

commit 5244bda781f7789391f9058b2a9da81d8e2e3a87
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Oct 28 23:22:03 2011 +0200

    Don't color tabs of blank/ special pages

 extensions/colorful-tabs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extensions/colorful-tabs.c b/extensions/colorful-tabs.c
index 672797e..1726e29 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);


More information about the Xfce4-commits mailing list