From 682e53ea81802b0533c2110900b057521454d55d Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 26 May 2009 07:41:17 +0200 Subject: [PATCH] Always focus the location in (blank) new windows --- midori/midori-browser.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index c49c09b6..4af6dafa 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -503,10 +503,8 @@ midori_view_notify_load_status_cb (GtkWidget* view, /* This is a hack to ensure that the address entry is focussed with speed dial open. */ - if (midori_view_get_load_status (MIDORI_VIEW (view)) - == MIDORI_LOAD_FINISHED) - if (midori_view_is_blank (MIDORI_VIEW (view))) - gtk_action_activate (_action_by_name (browser, "Location")); + if (midori_view_is_blank (MIDORI_VIEW (view))) + gtk_action_activate (_action_by_name (browser, "Location")); } g_object_notify (G_OBJECT (browser), "load-status"); @@ -1862,6 +1860,7 @@ _action_window_new_activate (GtkAction* action, MidoriBrowser* new_browser = g_object_new (MIDORI_TYPE_BROWSER, NULL); g_signal_emit (browser, signals[NEW_WINDOW], 0, new_browser); midori_browser_add_uri (new_browser, ""); + midori_browser_activate_action (new_browser, "Location"); } static void -- 2.39.5