diff options
author | Philip Langdale <philipl@mail.utexas.edu> | 2005-10-13 11:14:12 +0800 |
---|---|---|
committer | Philip Langdale <philipl@src.gnome.org> | 2005-10-13 11:14:12 +0800 |
commit | 54d95188256bc3a6504e949d8a6d85190401330e (patch) | |
tree | 6f8aba9ea3d03952e8232669c744fdf54e840374 /embed/ephy-embed.c | |
parent | 85939a287cbb2b9c789581ddc6d529dd24d2c870 (diff) | |
download | gsoc2013-epiphany-54d95188256bc3a6504e949d8a6d85190401330e.tar gsoc2013-epiphany-54d95188256bc3a6504e949d8a6d85190401330e.tar.gz gsoc2013-epiphany-54d95188256bc3a6504e949d8a6d85190401330e.tar.bz2 gsoc2013-epiphany-54d95188256bc3a6504e949d8a6d85190401330e.tar.lz gsoc2013-epiphany-54d95188256bc3a6504e949d8a6d85190401330e.tar.xz gsoc2013-epiphany-54d95188256bc3a6504e949d8a6d85190401330e.tar.zst gsoc2013-epiphany-54d95188256bc3a6504e949d8a6d85190401330e.zip |
embed/ephy-embed.c . Add a method to copy the back/forward history from
2005-10-12 Philip Langdale <philipl@mail.utexas.edu>
* embed/ephy-embed.c
* embed/ephy-embed.h: (ephy_embed_shistory_copy).
Add a method to copy the back/forward history from
one embed to another.
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
(EphyBrowser::CopySHistory) Implementation of
history copying.
* embed/mozilla/mozilla-embed.cpp:
Implement ephy_embed_shistory_copy by calling into
EphyBrowser.
* src/ephy-navigation-action.c:
(activate_back_or_forward_menu_item_cb). If a
history menu item is middle-clicked on, open a new
tab, copy the history over and then go to the
relevant page in the history.
* src/ephy-toolbar.c: (ephy_toolbar_set_window) Attach
handler for "open-link" to back/forward actions.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index b1128a835..8c27762e8 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -718,6 +718,28 @@ ephy_embed_shistory_go_nth (EphyEmbed *embed, } /** + * ephy_embed_shistory_copy: + * @source: the #EphyEmbed to copy the history from + * @dest: the #EphyEmbed to copy the history to + * @copy_back: %TRUE to copy the back history + * @copy_forward: %TRUE to copy the forward history + * @copy_current: %TRUE to set the current page to that in the copied history + * + * Copy's the back and/or forward history from @source to @dest, + * and optionally set @dest to the current page of @source as well. + **/ +void +ephy_embed_shistory_copy (EphyEmbed *source, + EphyEmbed *dest, + gboolean copy_back, + gboolean copy_forward, + gboolean copy_current) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (source); + iface->shistory_copy (source, dest, copy_back, copy_forward, copy_current); +} + +/** * ephy_embed_get_security_level: * @embed: an #EphyEmbed * @level: return value of security level |