aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2005-05-23 16:43:08 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2005-05-23 16:43:08 +0800
commitd43def89a5a693997c3b3804e24494eadc0e51bc (patch)
treee84d95da36dcbaa6a4012b1052729873dd0e53be /src
parentfa1b39fb2722ec0297cc61703a0bc9d95a20d9a3 (diff)
downloadgsoc2013-epiphany-d43def89a5a693997c3b3804e24494eadc0e51bc.tar
gsoc2013-epiphany-d43def89a5a693997c3b3804e24494eadc0e51bc.tar.gz
gsoc2013-epiphany-d43def89a5a693997c3b3804e24494eadc0e51bc.tar.bz2
gsoc2013-epiphany-d43def89a5a693997c3b3804e24494eadc0e51bc.tar.lz
gsoc2013-epiphany-d43def89a5a693997c3b3804e24494eadc0e51bc.tar.xz
gsoc2013-epiphany-d43def89a5a693997c3b3804e24494eadc0e51bc.tar.zst
gsoc2013-epiphany-d43def89a5a693997c3b3804e24494eadc0e51bc.zip
Windows opened from links are not always popups. Windows with menu bar
2005-05-23 Jean-François Rameau <jframeau@cvs.gnome.org> * src/ephy-shell.c: (ephy_shell_new_window_cb): Windows opened from links are not always popups. Windows with menu bar toggled on are not considered as popups. #304992
Diffstat (limited to 'src')
-rw-r--r--src/ephy-shell.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 6d3c57969..ab555f905 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -160,6 +160,7 @@ ephy_shell_new_window_cb (EphyEmbedSingle *single,
{
GtkWidget *parent = NULL;
EphyTab *new_tab;
+ gboolean is_popup;
EphyNewTabFlags flags = EPHY_NEW_TAB_DONT_SHOW_WINDOW |
EPHY_NEW_TAB_APPEND_LAST |
EPHY_NEW_TAB_IN_NEW_WINDOW |
@@ -181,10 +182,15 @@ ephy_shell_new_window_cb (EphyEmbedSingle *single,
parent = gtk_widget_get_toplevel (GTK_WIDGET (parent_embed));
}
+ /* what's a popup ? ATM, any window opened with menubar toggled on
+ * is *not* a popup
+ */
+ is_popup = (chromemask & EPHY_EMBED_CHROME_MENUBAR) == 0;
+
new_tab = ephy_shell_new_tab_full
(shell,
EPHY_IS_WINDOW (parent) ? EPHY_WINDOW (parent) : NULL,
- NULL, NULL, flags, chromemask, TRUE, 0);
+ NULL, NULL, flags, chromemask, is_popup, 0);
return ephy_tab_get_embed (new_tab);
}