aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-29 03:25:27 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-29 03:25:27 +0800
commit2b54a34f34fb42a184770b777b9a32c63ff036bb (patch)
tree69db5d5e84214fa06ce3e6f2f815cfeef48346d6 /src/ephy-window.c
parent90586b820dea7fdb2588b24939ae72514f87c73d (diff)
downloadgsoc2013-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.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c10
1 files changed, 9 insertions, 1 deletions
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;
}