aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-navigation-action.c6
-rw-r--r--src/epiphany.defs7
2 files changed, 5 insertions, 8 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)
{
diff --git a/src/epiphany.defs b/src/epiphany.defs
index 2c7fa8bc8..bcd74f807 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -1162,13 +1162,6 @@
(return-type "gboolean")
)
-
-(define-method go_back
- (of-object "EphyEmbed")
- (c-name "ephy_embed_go_back")
- (return-type "none")
-)
-
(define-method go_forward
(of-object "EphyEmbed")
(c-name "ephy_embed_go_forward")