aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-04-18 20:21:07 +0800
committerChristian Persch <chpe@src.gnome.org>2005-04-18 20:21:07 +0800
commit3b2f2f484313c6b68666913d22a1d1cffe1fdf86 (patch)
tree45fa6cad0182c86196682768d38af0d20e38ada0 /src
parentffdcb7ffd0191129ccee3d377cae306c81b10594 (diff)
downloadgsoc2013-epiphany-3b2f2f484313c6b68666913d22a1d1cffe1fdf86.tar
gsoc2013-epiphany-3b2f2f484313c6b68666913d22a1d1cffe1fdf86.tar.gz
gsoc2013-epiphany-3b2f2f484313c6b68666913d22a1d1cffe1fdf86.tar.bz2
gsoc2013-epiphany-3b2f2f484313c6b68666913d22a1d1cffe1fdf86.tar.lz
gsoc2013-epiphany-3b2f2f484313c6b68666913d22a1d1cffe1fdf86.tar.xz
gsoc2013-epiphany-3b2f2f484313c6b68666913d22a1d1cffe1fdf86.tar.zst
gsoc2013-epiphany-3b2f2f484313c6b68666913d22a1d1cffe1fdf86.zip
Also disallow opening a new tab from EphyLink iface in popup mode.
2005-04-18 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: (ephy_window_open_link): Also disallow opening a new tab from EphyLink iface in popup mode.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index b24ebfa6e..dff44fed2 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2705,6 +2705,7 @@ ephy_window_open_link (EphyLink *link,
EphyLinkFlags flags)
{
EphyWindow *window = EPHY_WINDOW (link);
+ EphyWindowPrivate *priv = window->priv;
EphyTab *new_tab;
g_return_val_if_fail (address != NULL, NULL);
@@ -2725,7 +2726,8 @@ ephy_window_open_link (EphyLink *link,
{
ntflags |= EPHY_NEW_TAB_JUMP;
}
- if (flags & EPHY_LINK_NEW_WINDOW)
+ if (flags & EPHY_LINK_NEW_WINDOW ||
+ (flags & EPHY_LINK_NEW_TAB && priv->is_popup))
{
ntflags |= EPHY_NEW_TAB_IN_NEW_WINDOW;
}