diff options
author | Xan Lopez <xan@igalia.com> | 2012-03-08 02:53:57 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-08 02:57:21 +0800 |
commit | c58efa251b4a978f9621b8ebcd4de4e4f4f695d2 (patch) | |
tree | 5ee37c4bcc01adbf40ba37af96e4a257ba004c1d /src/ephy-window.c | |
parent | 471cf1d2c7bb2768a2f4f7ffbbed68fa18f7fa2a (diff) | |
download | gsoc2013-epiphany-c58efa251b4a978f9621b8ebcd4de4e4f4f695d2.tar gsoc2013-epiphany-c58efa251b4a978f9621b8ebcd4de4e4f4f695d2.tar.gz gsoc2013-epiphany-c58efa251b4a978f9621b8ebcd4de4e4f4f695d2.tar.bz2 gsoc2013-epiphany-c58efa251b4a978f9621b8ebcd4de4e4f4f695d2.tar.lz gsoc2013-epiphany-c58efa251b4a978f9621b8ebcd4de4e4f4f695d2.tar.xz gsoc2013-epiphany-c58efa251b4a978f9621b8ebcd4de4e4f4f695d2.tar.zst gsoc2013-epiphany-c58efa251b4a978f9621b8ebcd4de4e4f4f695d2.zip |
Annotate correctly the fact that FileNewTab now always opens the homepage
We need to detect it in EphyEmbed to avoid adding about:blank to the
history in that case.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index b1fdfb7e1..d3cbfeb91 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -546,7 +546,8 @@ ephy_window_open_link (EphyLink *link, if (flags & (EPHY_LINK_JUMP_TO | EPHY_LINK_NEW_TAB | - EPHY_LINK_NEW_WINDOW)) + EPHY_LINK_NEW_WINDOW | + EPHY_LINK_HOME_PAGE)) { EphyNewTabFlags ntflags = EPHY_NEW_TAB_OPEN_PAGE; @@ -567,6 +568,9 @@ ephy_window_open_link (EphyLink *link, if (flags & EPHY_LINK_NEW_TAB_APPEND_AFTER) ntflags |= EPHY_NEW_TAB_APPEND_AFTER; + if (flags & EPHY_LINK_HOME_PAGE) + ntflags |= EPHY_NEW_TAB_HOME_PAGE; + new_embed = ephy_shell_new_tab (ephy_shell, EPHY_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (embed))), |