From 27b3a31636135db43034b5cbebb996e4b6d86db2 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 18 Aug 2003 22:42:39 +0000 Subject: Add activate api. 2003-08-19 Marco Pesenti Gritti * embed/ephy-embed.c: (ephy_embed_activate): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: Add activate api. * src/window-commands.c: (window_cmd_go_back), (window_cmd_go_up), (window_cmd_go_forward), (window_cmd_view_stop), (window_cmd_view_reload): Activate on navigation commands. It seem like a better beahvior and it avoid some mozilla focus craziness. --- src/window-commands.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/window-commands.c b/src/window-commands.c index 2ea06e6b3..66145daf4 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -79,6 +79,8 @@ window_cmd_go_back (EggAction *action, embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); + ephy_embed_activate (embed); + ephy_embed_go_back (embed); } @@ -91,6 +93,8 @@ window_cmd_go_up (EggAction *action, embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); + ephy_embed_activate (embed); + ephy_embed_go_up (embed); } @@ -146,6 +150,8 @@ window_cmd_go_forward (EggAction *action, embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); + ephy_embed_activate (embed); + ephy_embed_go_forward (embed); } @@ -185,6 +191,8 @@ window_cmd_view_stop (EggAction *action, embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); + ephy_embed_activate (embed); + ephy_embed_stop_load (embed); } @@ -220,6 +228,8 @@ window_cmd_view_reload (EggAction *action, force = TRUE; } + ephy_embed_activate (embed); + ephy_embed_reload (embed, force ? EMBED_RELOAD_NORMAL : EMBED_RELOAD_BYPASSCACHE); } -- cgit