aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/ephy-tab.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 28dd1ceb8..1d3979e64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
+
2004-03-02 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-file-chooser.c: (ephy_file_chooser_init):
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