aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-06-30 02:15:53 +0800
committerXan Lopez <xan@src.gnome.org>2008-06-30 02:15:53 +0800
commit21608abec6b897869c73009d5ffaf2e4a6a5bf90 (patch)
tree94828edeebb4964936e6fbc0a19926567e86f7fc /src
parent5aac39ff9672fb14e03ff33b99ab4853955a5592 (diff)
downloadgsoc2013-epiphany-21608abec6b897869c73009d5ffaf2e4a6a5bf90.tar
gsoc2013-epiphany-21608abec6b897869c73009d5ffaf2e4a6a5bf90.tar.gz
gsoc2013-epiphany-21608abec6b897869c73009d5ffaf2e4a6a5bf90.tar.bz2
gsoc2013-epiphany-21608abec6b897869c73009d5ffaf2e4a6a5bf90.tar.lz
gsoc2013-epiphany-21608abec6b897869c73009d5ffaf2e4a6a5bf90.tar.xz
gsoc2013-epiphany-21608abec6b897869c73009d5ffaf2e4a6a5bf90.tar.zst
gsoc2013-epiphany-21608abec6b897869c73009d5ffaf2e4a6a5bf90.zip
embed: remove ephy_embed_go_back.
Use WebKit API directly. svn path=/trunk/; revision=8304
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")