diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/ephy-window.c | 10 |
2 files changed, 15 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2005-07-28 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-window.c: (ephy_window_open_link): + + For empty pages, put focus in address bar. + +2005-07-28 Christian Persch <chpe@cvs.gnome.org> + * configure.ac: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: 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; } |