From 28a9f9230e12ff47873ef6d46b537ca5d471d62a Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 2 Mar 2004 19:24:07 +0000 Subject: Do not show the unsubmitted dialog for js close 2004-03-02 Marco Pesenti Gritti * src/ephy-tab.c: (ephy_tab_destroy_brsr_cb): Do not show the unsubmitted dialog for js close --- src/ephy-tab.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3