aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-05-20 02:45:34 +0800
committerChristian Persch <chpe@src.gnome.org>2004-05-20 02:45:34 +0800
commitb5a259caecd8811a90c4eb82fee402449ec617ba (patch)
tree44a2c76d88d2fc0d8cf068cca8dc608263c9dcf7 /src/ephy-window.c
parentc26be9eaf445f04efd11ff3cb3daed38626b1b12 (diff)
downloadgsoc2013-epiphany-b5a259caecd8811a90c4eb82fee402449ec617ba.tar
gsoc2013-epiphany-b5a259caecd8811a90c4eb82fee402449ec617ba.tar.gz
gsoc2013-epiphany-b5a259caecd8811a90c4eb82fee402449ec617ba.tar.bz2
gsoc2013-epiphany-b5a259caecd8811a90c4eb82fee402449ec617ba.tar.lz
gsoc2013-epiphany-b5a259caecd8811a90c4eb82fee402449ec617ba.tar.xz
gsoc2013-epiphany-b5a259caecd8811a90c4eb82fee402449ec617ba.tar.zst
gsoc2013-epiphany-b5a259caecd8811a90c4eb82fee402449ec617ba.zip
Emit the "tab_removed" signal also for the window's last tab. Part of bug
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.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c7
1 files changed, 1 insertions, 6 deletions
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);
}