diff options
author | Marco Pesenti Gritti <marco@.gnome.org> | 2003-08-19 06:42:39 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-08-19 06:42:39 +0800 |
commit | 27b3a31636135db43034b5cbebb996e4b6d86db2 (patch) | |
tree | b6f4e78bee4ef9ca5ba5382aa89607bdfe86162a /src | |
parent | 55ae859da0c35cc1cabbb68eb8bd343344bad3c9 (diff) | |
download | gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar.gz gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar.zst gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.zip |
Add activate api.
2003-08-19 Marco Pesenti Gritti <marco@.gnome.org>
* 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.
Diffstat (limited to 'src')
-rw-r--r-- | src/window-commands.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); } |