diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-06-30 15:23:52 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-06-30 15:23:52 +0800 |
commit | 0238a377973ad82bd73e4e8f12a291b62359e9c1 (patch) | |
tree | aea3bb8edf48835efa7500883c9e957b37ab1c37 /embed/webkit/webkit-embed.c | |
parent | faf45b0b6340ea93e9d4e8cfef7862885fc816c5 (diff) | |
download | gsoc2013-epiphany-0238a377973ad82bd73e4e8f12a291b62359e9c1.tar gsoc2013-epiphany-0238a377973ad82bd73e4e8f12a291b62359e9c1.tar.gz gsoc2013-epiphany-0238a377973ad82bd73e4e8f12a291b62359e9c1.tar.bz2 gsoc2013-epiphany-0238a377973ad82bd73e4e8f12a291b62359e9c1.tar.lz gsoc2013-epiphany-0238a377973ad82bd73e4e8f12a291b62359e9c1.tar.xz gsoc2013-epiphany-0238a377973ad82bd73e4e8f12a291b62359e9c1.tar.zst gsoc2013-epiphany-0238a377973ad82bd73e4e8f12a291b62359e9c1.zip |
embed: remove ephy_embed_get_{next,previous}_history_item.
Use WebKit APIs directly.
svn path=/trunk/; revision=8312
Diffstat (limited to 'embed/webkit/webkit-embed.c')
-rw-r--r-- | embed/webkit/webkit-embed.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index ef6b677d8..caeb3e912 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -53,13 +53,6 @@ typedef enum WEBKIT_EMBED_LOAD_STOPPED } WebKitEmbedLoadState; - -typedef enum -{ - WEBKIT_HISTORY_BACKWARD, - WEBKIT_HISTORY_FORWARD -} WebKitHistoryType; - struct WebKitEmbedPrivate { WebKitWebView *web_view; @@ -69,24 +62,6 @@ struct WebKitEmbedPrivate EphyHistory *history; }; -static EphyHistoryItem* -webkit_construct_history_item (WebKitEmbed *embed, WebKitHistoryType hist_type) -{ - WebKitWebBackForwardList *web_back_forward_list; - WebKitWebHistoryItem *history_item; - - g_return_val_if_fail (WEBKIT_IS_EMBED (embed), NULL); - - web_back_forward_list = webkit_web_view_get_back_forward_list (embed->priv->web_view); - - if (hist_type == WEBKIT_HISTORY_FORWARD) - history_item = webkit_web_back_forward_list_get_forward_item (web_back_forward_list); - else - history_item = webkit_web_back_forward_list_get_back_item (web_back_forward_list); - - return webkit_history_item_new (history_item); -} - static void impl_manager_do_command (EphyCommandManager *manager, const char *command) @@ -476,19 +451,6 @@ impl_has_modified_forms (EphyEmbed *embed) return FALSE; } -static EphyHistoryItem* -impl_get_next_history_item (EphyEmbed *embed) -{ - return webkit_construct_history_item (WEBKIT_EMBED (embed), WEBKIT_HISTORY_FORWARD); -} - - -static EphyHistoryItem* -impl_get_previous_history_item (EphyEmbed *embed) -{ - return webkit_construct_history_item (WEBKIT_EMBED (embed), WEBKIT_HISTORY_BACKWARD); -} - static void impl_go_to_history_item (EphyEmbed *embed, EphyHistoryItem *history_item) { @@ -524,7 +486,5 @@ ephy_embed_iface_init (EphyEmbedIface *iface) iface->print_preview_navigate = impl_print_preview_navigate; iface->has_modified_forms = impl_has_modified_forms; iface->get_security_level = impl_get_security_level; - iface->get_next_history_item = impl_get_next_history_item; - iface->get_previous_history_item = impl_get_previous_history_item; iface->go_to_history_item = impl_go_to_history_item; } |