[Xfce4-commits] <midori:master> Make sure speed dial is shown in blank tabs

Christian Dywan noreply at xfce.org
Wed Apr 20 00:32:02 CEST 2011


Updating branch refs/heads/master
         to d6c2be80429342a85808aa3d326d923955eff30f (commit)
       from 474358d9725b241849c0a4efa57524735deec9c3 (commit)

commit d6c2be80429342a85808aa3d326d923955eff30f
Author: Cyril Brulebois <kibi at debian.org>
Date:   Sun Apr 10 06:37:24 2011 +0200

    Make sure speed dial is shown in blank tabs
    
    The speed dial is now mandatory, but it's still possible to get
    a blank tab. With an empty home page and a displayed speed dial
    on a new tab, going to any page and coming back leads to a blank page.
    
    Work around that by checking whether the view is empty and setting the
    uri to an empty string in this case, to hit the code path which makes
    the speed dial kick in.

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

diff --git a/midori/midori-view.c b/midori/midori-view.c
index e6495df..8fc0479 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -5213,6 +5213,9 @@ midori_view_go_back (MidoriView* view)
     g_return_if_fail (MIDORI_IS_VIEW (view));
 
     webkit_web_view_go_back (WEBKIT_WEB_VIEW (view->web_view));
+    /* Force the speed dial to kick in if going back to a blank page */
+    if (midori_view_is_blank (view))
+        midori_view_set_uri (view, "");
 }
 
 /**



More information about the Xfce4-commits mailing list