diff options
author | Xan Lopez <xan@gnome.org> | 2009-05-31 00:21:03 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-05-31 00:21:03 +0800 |
commit | 3191345e4aafa9ae92c676468e588b6d1df2862c (patch) | |
tree | f2cd7b8ab212fca19fa745966156ce58c1d31384 /embed/webkit | |
parent | d94e4eca61821f956c67e6a519c36be083dd794d (diff) | |
download | gsoc2013-epiphany-3191345e4aafa9ae92c676468e588b6d1df2862c.tar gsoc2013-epiphany-3191345e4aafa9ae92c676468e588b6d1df2862c.tar.gz gsoc2013-epiphany-3191345e4aafa9ae92c676468e588b6d1df2862c.tar.bz2 gsoc2013-epiphany-3191345e4aafa9ae92c676468e588b6d1df2862c.tar.lz gsoc2013-epiphany-3191345e4aafa9ae92c676468e588b6d1df2862c.tar.xz gsoc2013-epiphany-3191345e4aafa9ae92c676468e588b6d1df2862c.tar.zst gsoc2013-epiphany-3191345e4aafa9ae92c676468e588b6d1df2862c.zip |
Move method to copy history between embeds/views to EphyWebView from EphyEmbed.
Just part of the gradual progress to get rid of the Embed interface.
Diffstat (limited to 'embed/webkit')
-rw-r--r-- | embed/webkit/webkit-embed.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index 060b243c3..ddb69dc8b 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -830,46 +830,6 @@ impl_get_location (EphyEmbed *embed, } static void -impl_shistory_copy (EphyEmbed *source, - EphyEmbed *dest, - gboolean copy_back, - gboolean copy_forward, - gboolean copy_current) -{ - WebKitWebView *source_view, *dest_view; - WebKitWebBackForwardList* source_bflist, *dest_bflist; - WebKitWebHistoryItem *item; - GList *items; - - source_view = WEBKIT_EMBED (source)->priv->web_view; - dest_view = WEBKIT_EMBED (dest)->priv->web_view; - - source_bflist = webkit_web_view_get_back_forward_list (source_view); - dest_bflist = webkit_web_view_get_back_forward_list (dest_view); - - if (copy_back) { - items = webkit_web_back_forward_list_get_back_list_with_limit (source_bflist, EPHY_WEBKIT_BACK_FORWARD_LIMIT); - /* We want to add the items in the reverse order here, so the - history ends up the same */ - items = g_list_reverse (items); - for (; items; items = items->next) { - item = (WebKitWebHistoryItem*)items->data; - webkit_web_back_forward_list_add_item (dest_bflist, g_object_ref (item)); - } - g_list_free (items); - } - - /* The ephy/gecko behavior is to add the current item of the source - embed at the end of the back history, so keep doing that */ - item = webkit_web_back_forward_list_get_current_item (source_bflist); - webkit_web_back_forward_list_add_item (dest_bflist, g_object_ref (item)); - - /* We ignore the 'copy_current' flag, it's unused in Epiphany */ - /* We ignore the 'copy_forward' flag, ephy/gecko did nothing with it - either AFAICT*/ -} - -static void impl_get_security_level (EphyEmbed *embed, EphyEmbedSecurityLevel *level, char **description) @@ -925,7 +885,6 @@ ephy_embed_iface_init (EphyEmbedIface *iface) iface->go_up = impl_go_up; iface->get_location = impl_get_location; iface->get_js_status = impl_get_js_status; - iface->shistory_copy = impl_shistory_copy; iface->show_page_certificate = impl_show_page_certificate; iface->set_print_preview_mode = impl_set_print_preview_mode; iface->print_preview_n_pages = impl_print_preview_n_pages; |