From 54d95188256bc3a6504e949d8a6d85190401330e Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Thu, 13 Oct 2005 03:14:12 +0000 Subject: embed/ephy-embed.c . Add a method to copy the back/forward history from 2005-10-12 Philip Langdale * 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. --- embed/ephy-embed.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'embed/ephy-embed.h') diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h index 96e4ee77f..4f268cd3b 100644 --- a/embed/ephy-embed.h +++ b/embed/ephy-embed.h @@ -179,6 +179,11 @@ struct _EphyEmbedIface int (* shistory_get_pos) (EphyEmbed *embed); void (* shistory_go_nth) (EphyEmbed *embed, int nth); + void (* shistory_copy) (EphyEmbed *source, + EphyEmbed *dest, + gboolean copy_back, + gboolean copy_forward, + gboolean copy_current); void (* get_security_level) (EphyEmbed *embed, EphyEmbedSecurityLevel *level, char **description); @@ -259,6 +264,12 @@ int ephy_embed_shistory_get_pos (EphyEmbed *embed); void ephy_embed_shistory_go_nth (EphyEmbed *embed, int nth); +void ephy_embed_shistory_copy (EphyEmbed *source, + EphyEmbed *dest, + gboolean copy_back, + gboolean copy_forward, + gboolean copy_current); + void ephy_embed_get_security_level (EphyEmbed *embed, EphyEmbedSecurityLevel *level, char **description); -- cgit v1.2.3