diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-06-30 02:16:08 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-06-30 02:16:08 +0800 |
commit | ec517d71f6e381764ed8624151ad12519bf21aa6 (patch) | |
tree | 439f8341519ed227e993fd8fbbbfbdbd6de94209 /embed | |
parent | 83c145ca0bdf9c659f808a1485ad2f580c6b439f (diff) | |
download | gsoc2013-epiphany-ec517d71f6e381764ed8624151ad12519bf21aa6.tar gsoc2013-epiphany-ec517d71f6e381764ed8624151ad12519bf21aa6.tar.gz gsoc2013-epiphany-ec517d71f6e381764ed8624151ad12519bf21aa6.tar.bz2 gsoc2013-epiphany-ec517d71f6e381764ed8624151ad12519bf21aa6.tar.lz gsoc2013-epiphany-ec517d71f6e381764ed8624151ad12519bf21aa6.tar.xz gsoc2013-epiphany-ec517d71f6e381764ed8624151ad12519bf21aa6.tar.zst gsoc2013-epiphany-ec517d71f6e381764ed8624151ad12519bf21aa6.zip |
embed: remove ephy_embed_can_go_back.
Use WebKit API directly.
svn path=/trunk/; revision=8307
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-base-embed.c | 2 | ||||
-rw-r--r-- | embed/ephy-embed.c | 13 | ||||
-rw-r--r-- | embed/ephy-embed.h | 3 | ||||
-rw-r--r-- | embed/webkit/webkit-embed.c | 7 |
4 files changed, 1 insertions, 24 deletions
diff --git a/embed/ephy-base-embed.c b/embed/ephy-base-embed.c index a5411b6bc..ec4412857 100644 --- a/embed/ephy-base-embed.c +++ b/embed/ephy-base-embed.c @@ -1112,7 +1112,7 @@ update_navigation_flags (EphyBaseEmbed *membed) flags |= EPHY_EMBED_NAV_UP; } - if (ephy_embed_can_go_back (embed)) { + if (webkit_web_view_can_go_back (web_view)) { flags |= EPHY_EMBED_NAV_BACK; } diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 086c19bd8..f6bc66987 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -406,19 +406,6 @@ ephy_embed_load (EphyEmbed *embed, } /** - * ephy_embed_can_go_back: - * @embed: an #EphyEmbed - * - * Return value: %TRUE if @embed can return to a previously-visited location - **/ -gboolean -ephy_embed_can_go_back (EphyEmbed *embed) -{ - EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - return iface->can_go_back (embed); -} - -/** * ephy_embed_can_go_up: * @embed: an #EphyEmbed * diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h index 155975774..2dddb985d 100644 --- a/embed/ephy-embed.h +++ b/embed/ephy-embed.h @@ -170,7 +170,6 @@ struct _EphyEmbedIface const char *url, EphyEmbedLoadFlags flags, EphyEmbed *referring_embed); - gboolean (* can_go_back) (EphyEmbed *embed); gboolean (* can_go_up) (EphyEmbed *embed); GSList * (* get_go_up_list) (EphyEmbed *embed); void (* go_up) (EphyEmbed *embed); @@ -263,8 +262,6 @@ const char *ephy_embed_get_link_message (EphyEmbed *embed); char *ephy_embed_get_js_status (EphyEmbed *embed); /* Navigation */ -gboolean ephy_embed_can_go_back (EphyEmbed *embed); - gboolean ephy_embed_can_go_up (EphyEmbed *embed); GSList *ephy_embed_get_go_up_list (EphyEmbed *embed); diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index 69de6221d..304273412 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -366,12 +366,6 @@ impl_load (EphyEmbed *embed, } static gboolean -impl_can_go_back (EphyEmbed *embed) -{ - return webkit_web_view_can_go_back (WEBKIT_EMBED (embed)->priv->web_view); -} - -static gboolean impl_can_go_up (EphyEmbed *embed) { return FALSE; @@ -560,7 +554,6 @@ ephy_embed_iface_init (EphyEmbedIface *iface) { iface->load_url = impl_load_url; iface->load = impl_load; - iface->can_go_back = impl_can_go_back; iface->can_go_up = impl_can_go_up; iface->get_go_up_list = impl_get_go_up_list; iface->go_up = impl_go_up; |