diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-24 22:01:06 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-24 22:01:06 +0800 |
commit | 22f2e807d040d2d0f51e53e1f022a40d82fc1a24 (patch) | |
tree | 660ae156c01417ceb724140784218e1c12819a67 /src/ephy-notebook.c | |
parent | fe562478cc9fc4e2fc53edb44f39c33f0a063685 (diff) | |
download | gsoc2013-epiphany-22f2e807d040d2d0f51e53e1f022a40d82fc1a24.tar gsoc2013-epiphany-22f2e807d040d2d0f51e53e1f022a40d82fc1a24.tar.gz gsoc2013-epiphany-22f2e807d040d2d0f51e53e1f022a40d82fc1a24.tar.bz2 gsoc2013-epiphany-22f2e807d040d2d0f51e53e1f022a40d82fc1a24.tar.lz gsoc2013-epiphany-22f2e807d040d2d0f51e53e1f022a40d82fc1a24.tar.xz gsoc2013-epiphany-22f2e807d040d2d0f51e53e1f022a40d82fc1a24.tar.zst gsoc2013-epiphany-22f2e807d040d2d0f51e53e1f022a40d82fc1a24.zip |
Make EphyWindow responsible for its own destruction when the last tab is gone
EphyNotebook was destroying its toplevel when the last tab was
destroyed. I think this is really weird, so move the responsibility to
the window. This will probably break something, I'm sure.
Diffstat (limited to 'src/ephy-notebook.c')
-rw-r--r-- | src/ephy-notebook.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index b229fb4b3..686cfe932 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -800,10 +800,4 @@ ephy_notebook_remove (GtkContainer *container, GTK_CONTAINER_CLASS (ephy_notebook_parent_class)->remove (container, tab_widget); update_tabs_visibility (notebook, FALSE); - - /* if that was the last tab, destroy the window */ - if (gtk_notebook_get_n_pages (gnotebook) == 0) - { - gtk_widget_destroy (gtk_widget_get_toplevel (GTK_WIDGET (notebook))); - } } |