diff options
Diffstat (limited to 'src/ephy-navigation-action.c')
-rw-r--r-- | src/ephy-navigation-action.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-navigation-action.c b/src/ephy-navigation-action.c index e76ac9e2e..d4df0845b 100644 --- a/src/ephy-navigation-action.c +++ b/src/ephy-navigation-action.c @@ -29,6 +29,7 @@ #include "ephy-history.h" #include "ephy-embed-container.h" #include "ephy-embed-shell.h" +#include "ephy-embed-utils.h" #include "ephy-history-item.h" #include "ephy-link.h" #include "ephy-gui.h" @@ -352,10 +353,13 @@ ephy_navigation_action_activate (GtkAction *gtk_action) EphyNavigationAction *action = EPHY_NAVIGATION_ACTION (gtk_action); EphyWindow *window = action->priv->window; EphyEmbed *embed; + WebKitWebView *web_view; embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); + web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed); + if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_BACK) { if (ephy_gui_is_middle_click ()) @@ -365,7 +369,7 @@ ephy_navigation_action_activate (GtkAction *gtk_action) NULL, EPHY_LINK_NEW_TAB); } - ephy_embed_go_back (embed); + webkit_web_view_go_back (web_view); } else if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_FORWARD) { |