diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-07-29 03:25:27 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-07-29 03:25:27 +0800 |
commit | 2b54a34f34fb42a184770b777b9a32c63ff036bb (patch) | |
tree | 69db5d5e84214fa06ce3e6f2f815cfeef48346d6 | |
parent | 90586b820dea7fdb2588b24939ae72514f87c73d (diff) | |
download | gsoc2013-epiphany-2b54a34f34fb42a184770b777b9a32c63ff036bb.tar gsoc2013-epiphany-2b54a34f34fb42a184770b777b9a32c63ff036bb.tar.gz gsoc2013-epiphany-2b54a34f34fb42a184770b777b9a32c63ff036bb.tar.bz2 gsoc2013-epiphany-2b54a34f34fb42a184770b777b9a32c63ff036bb.tar.lz gsoc2013-epiphany-2b54a34f34fb42a184770b777b9a32c63ff036bb.tar.xz gsoc2013-epiphany-2b54a34f34fb42a184770b777b9a32c63ff036bb.tar.zst gsoc2013-epiphany-2b54a34f34fb42a184770b777b9a32c63ff036bb.zip |
For empty pages, put focus in address bar.
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.
-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; } |