aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-06-30 02:29:17 +0800
committerXan Lopez <xlopez@igalia.com>2011-06-30 02:29:17 +0800
commit0ea926b7639db07086101cb9bca0fc10b69c07c9 (patch)
tree32832549a61900601836b29c890cf90a0d980111 /src/ephy-shell.c
parenteddaae421e4e38d8124f659b1bd8ff65162247e4 (diff)
downloadgsoc2013-epiphany-0ea926b7639db07086101cb9bca0fc10b69c07c9.tar
gsoc2013-epiphany-0ea926b7639db07086101cb9bca0fc10b69c07c9.tar.gz
gsoc2013-epiphany-0ea926b7639db07086101cb9bca0fc10b69c07c9.tar.bz2
gsoc2013-epiphany-0ea926b7639db07086101cb9bca0fc10b69c07c9.tar.lz
gsoc2013-epiphany-0ea926b7639db07086101cb9bca0fc10b69c07c9.tar.xz
gsoc2013-epiphany-0ea926b7639db07086101cb9bca0fc10b69c07c9.tar.zst
gsoc2013-epiphany-0ea926b7639db07086101cb9bca0fc10b69c07c9.zip
ephy-shell: do not ref the shell more than needed
We already guarantee that the app will stay up by adding the windows to the GtkApplication, so stop reffing the shell in these callbacks.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index e3f3c98ba..2bd5c8a59 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -963,7 +963,6 @@ toolwindow_show_cb (GtkWidget *widget, EphyShell *es)
LOG ("Ref shell for %s", G_OBJECT_TYPE_NAME (widget));
ephy_session_add_window (ephy_shell->priv->session, GTK_WINDOW (widget));
- g_object_ref (ephy_shell);
}
static void
@@ -972,7 +971,6 @@ toolwindow_hide_cb (GtkWidget *widget, EphyShell *es)
LOG ("Unref shell for %s", G_OBJECT_TYPE_NAME (widget));
ephy_session_remove_window (ephy_shell->priv->session, GTK_WINDOW (widget));
- g_object_unref (ephy_shell);
}
/**