From 2b54a34f34fb42a184770b777b9a32c63ff036bb Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 28 Jul 2005 19:25:27 +0000 Subject: For empty pages, put focus in address bar. 2005-07-28 Christian Persch * src/ephy-window.c: (ephy_window_open_link): For empty pages, put focus in address bar. --- ChangeLog | 6 ++++++ src/ephy-window.c | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b709a588b..cf57439a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-28 Christian Persch + + * src/ephy-window.c: (ephy_window_open_link): + + For empty pages, put focus in address bar. + 2005-07-28 Christian Persch * configure.ac: diff --git a/src/ephy-window.c b/src/ephy-window.c index b6d5955da..f2c374d60 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -2698,7 +2698,15 @@ ephy_window_open_link (EphyLink *link, embed = ephy_tab_get_embed (tab); ephy_embed_load_url (embed, address); - ephy_embed_activate (embed); + + if (address == NULL || address[0] == '\0' || strcmp (address, "about:blank") == 0) + { + ephy_toolbar_activate_location (priv->toolbar); + } + else + { + ephy_embed_activate (embed); + } new_tab = tab; } -- cgit v1.2.3