diff options
author | Philip Langdale <philipl@mail.utexas.edu> | 2005-10-13 22:57:11 +0800 |
---|---|---|
committer | Philip Langdale <philipl@src.gnome.org> | 2005-10-13 22:57:11 +0800 |
commit | 1da1c3211c2d783e9b4646feffacdd7cb7880e7a (patch) | |
tree | 7f66e1f552c77e67c14eaaf9213ad1690c99528f | |
parent | 1e5693677f94e878dbd4edb745b0680e2ef17e9e (diff) | |
download | gsoc2013-epiphany-1da1c3211c2d783e9b4646feffacdd7cb7880e7a.tar.gz gsoc2013-epiphany-1da1c3211c2d783e9b4646feffacdd7cb7880e7a.tar.zst gsoc2013-epiphany-1da1c3211c2d783e9b4646feffacdd7cb7880e7a.zip |
Copy the back history when a link is opened in a new tab from a
2005-10-12 Philip Langdale <philipl@mail.utexas.edu>
* src/ephy-tab.c: (open_link_in_new_tab):
Copy the back history when a link is opened in
a new tab from a middle-click or a ctrl-click.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/ephy-tab.c | 15 |
2 files changed, 19 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2005-10-12 Philip Langdale <philipl@mail.utexas.edu> + * src/ephy-tab.c: (open_link_in_new_tab): + Copy the back history when a link is opened in + a new tab from a middle-click or a ctrl-click. + +2005-10-12 Philip Langdale <philipl@mail.utexas.edu> + * src/ephy-navigation-action.c: (activate_back_or_forward_menu_item_cb). Forgot to remove the unused url variable. diff --git a/src/ephy-tab.c b/src/ephy-tab.c index b18f971bc..353f0d30b 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -1819,8 +1819,19 @@ open_link_in_new_tab (EphyTab *tab, if (new_tab) { - return ephy_link_open (EPHY_LINK (tab), link_address, - tab, EPHY_LINK_NEW_TAB) != NULL; + EphyTab *dest; + dest = ephy_link_open (EPHY_LINK (tab), link_address, + tab, EPHY_LINK_NEW_TAB); + + if (dest) + { + ephy_embed_shistory_copy (ephy_tab_get_embed (tab), + ephy_tab_get_embed (dest), + TRUE, /* back history */ + FALSE, /* forward history */ + FALSE); /* current index */ + return TRUE; + } } return FALSE; |