diff options
author | Xan Lopez <xan@src.gnome.org> | 2007-11-18 05:10:59 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2007-11-18 05:10:59 +0800 |
commit | af850aee2ba02a59abe0f4e4292b7782a64ea975 (patch) | |
tree | 02c2455d1b7a9400c696bea5be0775aa2ce16a6c /src | |
parent | 64ba9717557ffe2428b29d79c8efed6fcbf4bbd7 (diff) | |
download | gsoc2013-epiphany-af850aee2ba02a59abe0f4e4292b7782a64ea975.tar gsoc2013-epiphany-af850aee2ba02a59abe0f4e4292b7782a64ea975.tar.gz gsoc2013-epiphany-af850aee2ba02a59abe0f4e4292b7782a64ea975.tar.bz2 gsoc2013-epiphany-af850aee2ba02a59abe0f4e4292b7782a64ea975.tar.lz gsoc2013-epiphany-af850aee2ba02a59abe0f4e4292b7782a64ea975.tar.xz gsoc2013-epiphany-af850aee2ba02a59abe0f4e4292b7782a64ea975.tar.zst gsoc2013-epiphany-af850aee2ba02a59abe0f4e4292b7782a64ea975.zip |
Use go_back and go_forward methods for navigation.
Instead of jumping to -1 and +1 in the history. Less code,
and it even works in WebKit :)
svn path=/trunk/; revision=7716
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-navigation-action.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ephy-navigation-action.c b/src/ephy-navigation-action.c index 56ad8081a..7aea4520b 100644 --- a/src/ephy-navigation-action.c +++ b/src/ephy-navigation-action.c @@ -402,20 +402,17 @@ ephy_navigation_action_activate (GtkAction *gtk_action) EphyNavigationAction *action = EPHY_NAVIGATION_ACTION (gtk_action); EphyWindow *window = action->priv->window; EphyEmbed *embed; - int pos; embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); - pos = ephy_embed_shistory_get_pos (embed); - if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_BACK) { - activate_by_history_index (action, pos - 1); + ephy_embed_go_back (embed); } else if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_FORWARD) { - activate_by_history_index (action, pos + 1); + ephy_embed_go_forward (embed); } else if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_UP) { |