[Xfce4-commits] <midori:master> Consider all about: URIs as blank

Christian Dywan noreply at xfce.org
Sun Jul 24 22:52:01 CEST 2011


Updating branch refs/heads/master
         to 338ddf8ea78e82e024a7cb27b74c24043c6d7c8e (commit)
       from 22a7862654ab057ca02fc4401499d428835e8a78 (commit)

commit 338ddf8ea78e82e024a7cb27b74c24043c6d7c8e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Jul 24 22:50:15 2011 +0200

    Consider all about: URIs as blank
    
    about:version is prominently not rendered as "" so we need
    to check the prefix.
    
    Fixes: https://bugs.launchpad.net/midori/+bug/784337

 midori/midori-view.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index cdc6883..0ef7af3 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3943,9 +3943,12 @@ midori_view_set_uri (MidoriView*  view,
 gboolean
 midori_view_is_blank (MidoriView*  view)
 {
+    const gchar* uri;
+
     g_return_val_if_fail (MIDORI_IS_VIEW (view), TRUE);
 
-    return midori_view_get_display_uri (view)[0] == '\0';
+    uri = midori_view_get_display_uri (view);
+    return uri[0] == '\0' || g_str_has_prefix (uri, "about:");
 }
 
 /**


More information about the Xfce4-commits mailing list