From e3fea6c2eb865c3b2e152495aba19c5b0893ac96 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 16 May 2009 23:52:59 +0200 Subject: [PATCH] Ensure that the address entry is focussed with speed dial --- midori/midori-browser.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index dfc5cca2..81cc0499 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -487,6 +487,13 @@ midori_view_notify_load_status_cb (GtkWidget* view, _midori_browser_update_interface (browser); _midori_browser_set_statusbar_text (browser, NULL); + + /* 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 (view)) + gtk_action_activate (_action_by_name (browser, "Location")); } g_object_notify (G_OBJECT (browser), "load-status");