diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-08-06 06:55:13 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-08-06 06:55:13 +0800 |
commit | 732bcf4bf907ae01ecb2c041d13d3ba0ec4b07bc (patch) | |
tree | 359fbbf78110e295090f0479e2036d9a98993df3 /src/window-commands.c | |
parent | 0f6260cce67b1642d2e56f7f1a9e53e6cb8ae9dd (diff) | |
download | gsoc2013-epiphany-732bcf4bf907ae01ecb2c041d13d3ba0ec4b07bc.tar.gz gsoc2013-epiphany-732bcf4bf907ae01ecb2c041d13d3ba0ec4b07bc.tar.zst gsoc2013-epiphany-732bcf4bf907ae01ecb2c041d13d3ba0ec4b07bc.zip |
Fix blank page loading.
2003-08-06 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-shell.c: (load_homepage):
* src/window-commands.c: (window_cmd_go_home):
Fix blank page loading.
* src/ephy-shell.c: (ephy_shell_new_tab):
Fix new tab positioning.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r-- | src/window-commands.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index b53ebc709..ca2ef3b00 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -157,7 +157,14 @@ window_cmd_go_home (EggAction *action, location = eel_gconf_get_string (CONF_GENERAL_HOMEPAGE); - ephy_window_load_url (window, location ? location : "about:blank"); + if (location == NULL || location[0] == '\0') + { + g_free (location); + + location = g_strdup ("about:blank"); + } + + ephy_window_load_url (window, location); g_free (location); } |