aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-09-25 02:45:03 +0800
committerChristian Persch <chpe@src.gnome.org>2003-09-25 02:45:03 +0800
commitf9b785e9f0e388bcebcfefdaf440b4c8a7773fb0 (patch)
treeba00836f282f6fe385a212e90e63b79361a85481 /src/ephy-shell.c
parentca8f357fd917b4cab36550fd837777b6b5b3caed (diff)
downloadgsoc2013-epiphany-f9b785e9f0e388bcebcfefdaf440b4c8a7773fb0.tar.gz
gsoc2013-epiphany-f9b785e9f0e388bcebcfefdaf440b4c8a7773fb0.tar.zst
gsoc2013-epiphany-f9b785e9f0e388bcebcfefdaf440b4c8a7773fb0.zip
Don't destroy the session when all windows are closed.
2003-09-24 Christian Persch <chpe@cvs.gnome.org> * src/ephy-shell.c: (ephy_shell_finalize), (ephy_shell_get_session): * src/session.c: (session_new), (save_tab), (parse_embed), (session_remove_window): Don't destroy the session when all windows are closed.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index b70435892..a1c72d89a 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000, 2001, 2002 Marco Pesenti Gritti
+ * Copyright (C) 2000, 2001, 2002, 2003 Marco Pesenti Gritti
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -300,10 +300,6 @@ ephy_shell_finalize (GObject *object)
LOG ("Unref session")
if (gs->priv->session)
{
- g_return_if_fail (EPHY_IS_SESSION(gs->priv->session));
- g_object_remove_weak_pointer
- (G_OBJECT(gs->priv->session),
- (gpointer *)&gs->priv->session);
g_object_unref (G_OBJECT (gs->priv->session));
}
@@ -558,9 +554,6 @@ ephy_shell_get_session (EphyShell *gs)
if (!gs->priv->session)
{
gs->priv->session = session_new ();
- g_object_add_weak_pointer
- (G_OBJECT(gs->priv->session),
- (gpointer *)&gs->priv->session);
}
return G_OBJECT (gs->priv->session);