aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-26 23:47:41 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-26 23:47:41 +0800
commit9dbfd9b34b6dab67863392504c221e0c6f0eb4a2 (patch)
tree4869be653b0d9cac359f289b1e067533713f5cb0 /src/window-commands.c
parentbd886bd75b0f49f350d479ca1e6c57e6a7451f73 (diff)
downloadgsoc2013-epiphany-9dbfd9b34b6dab67863392504c221e0c6f0eb4a2.tar
gsoc2013-epiphany-9dbfd9b34b6dab67863392504c221e0c6f0eb4a2.tar.gz
gsoc2013-epiphany-9dbfd9b34b6dab67863392504c221e0c6f0eb4a2.tar.bz2
gsoc2013-epiphany-9dbfd9b34b6dab67863392504c221e0c6f0eb4a2.tar.lz
gsoc2013-epiphany-9dbfd9b34b6dab67863392504c221e0c6f0eb4a2.tar.xz
gsoc2013-epiphany-9dbfd9b34b6dab67863392504c221e0c6f0eb4a2.tar.zst
gsoc2013-epiphany-9dbfd9b34b6dab67863392504c221e0c6f0eb4a2.zip
Use window_load_url when useful. Right now just a cleanup but will be
2003-06-26 Marco Pesenti Gritti <marco@it.gnome.org> * src/bookmarks/ephy-bookmarks-menu.c: (go_location_cb): * src/ephy-favorites-menu.c: (go_location_cb): * src/ephy-navigation-action.c: (activate_up_menu_item_cb): * src/ephy-shell.c: (ephy_shell_new_tab): * src/toolbar.c: (go_location_cb): * src/window-commands.c: (window_cmd_go_home): Use window_load_url when useful. Right now just a cleanup but will be useful when mozilla focus will stop to suck.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 74d7779f8..10e154293 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -156,16 +156,11 @@ void
window_cmd_go_home (EggAction *action,
EphyWindow *window)
{
- EphyEmbed *embed;
char *location;
- embed = ephy_window_get_active_embed (window);
- g_return_if_fail (embed != NULL);
-
location = eel_gconf_get_string (CONF_GENERAL_HOMEPAGE);
- g_return_if_fail (location != NULL);
- ephy_embed_load_url (embed, location);
+ ephy_window_load_url (window, location ? location : "about:blank");
g_free (location);
}