aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-03-03 03:24:07 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-03-03 03:24:07 +0800
commit28a9f9230e12ff47873ef6d46b537ca5d471d62a (patch)
treee7345e680964279bc3171ee50c0b7406696a31ee /src
parent853902273b645bd4f3776e3283365d10abee6de6 (diff)
downloadgsoc2013-epiphany-28a9f9230e12ff47873ef6d46b537ca5d471d62a.tar
gsoc2013-epiphany-28a9f9230e12ff47873ef6d46b537ca5d471d62a.tar.gz
gsoc2013-epiphany-28a9f9230e12ff47873ef6d46b537ca5d471d62a.tar.bz2
gsoc2013-epiphany-28a9f9230e12ff47873ef6d46b537ca5d471d62a.tar.lz
gsoc2013-epiphany-28a9f9230e12ff47873ef6d46b537ca5d471d62a.tar.xz
gsoc2013-epiphany-28a9f9230e12ff47873ef6d46b537ca5d471d62a.tar.zst
gsoc2013-epiphany-28a9f9230e12ff47873ef6d46b537ca5d471d62a.zip
Do not show the unsubmitted dialog for js close
2004-03-02 Marco Pesenti Gritti <marco@gnome.org> * src/ephy-tab.c: (ephy_tab_destroy_brsr_cb): Do not show the unsubmitted dialog for js close
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index fe47a88e7..1cc771474 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -942,10 +942,15 @@ ephy_tab_visibility_cb (EphyEmbed *embed, gboolean visibility,
static void
ephy_tab_destroy_brsr_cb (EphyEmbed *embed, EphyTab *tab)
{
+ GtkWidget *notebook;
+
g_return_if_fail (EPHY_IS_TAB (tab));
g_return_if_fail (tab->priv->window != NULL);
- ephy_window_remove_tab (tab->priv->window, tab);
+ /* Do not use ephy_window_remove_tab because it will
+ check for unsubmitted forms */
+ notebook = ephy_window_get_notebook (tab->priv->window);
+ ephy_notebook_remove_tab (EPHY_NOTEBOOK (notebook), tab);
}
static void