aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/ephy-notebook.c2
-rw-r--r--src/ephy-window.c7
3 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 7735d1664..b0d61a4ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2004-05-19 Christian Persch <chpe@cvs.gnome.org>
+ * src/ephy-notebook.c: (ephy_notebook_remove_tab):
+ * src/ephy-window.c: (tab_removed_cb):
+
+ Emit the "tab_removed" signal also for the window's last tab.
+ Part of bug #142078.
+
+2004-05-19 Christian Persch <chpe@cvs.gnome.org>
+
* src/bookmarks/ephy-bookmark-action.c: (activate_cb),
(button_press_cb), (button_release_cb), (connect_proxy),
(ephy_bookmark_action_class_init):
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 3e8689100..05412a11b 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -1091,6 +1091,8 @@ ephy_notebook_remove_tab (EphyNotebook *nb,
{
GtkWidget *window;
window = gtk_widget_get_toplevel (GTK_WIDGET (nb));
+
+ g_signal_emit (G_OBJECT (nb), signals[TAB_REMOVED], 0, tab);
gtk_widget_destroy (window);
return;
}
diff --git a/src/ephy-window.c b/src/ephy-window.c
index fced25c38..4819afee8 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1659,12 +1659,7 @@ tab_removed_cb (EphyNotebook *notebook,
window->priv->num_tabs--;
- if (window->priv->num_tabs == 0)
- {
- /* removed the last tab, close the window */
- gtk_widget_destroy (GTK_WIDGET (window));
- }
- else
+ if (window->priv->num_tabs > 0)
{
update_tabs_menu_sensitivity (window);
}