[epiphany] ephy-shell: do not ref the shell more than needed
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-shell: do not ref the shell more than needed
- Date: Wed, 29 Jun 2011 19:12:00 +0000 (UTC)
commit 0ea926b7639db07086101cb9bca0fc10b69c07c9
Author: Xan Lopez <xlopez igalia com>
Date: Wed Jun 29 20:29:17 2011 +0200
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.
src/ephy-shell.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index e3f3c98..2bd5c8a 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]