From 0ea926b7639db07086101cb9bca0fc10b69c07c9 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 29 Jun 2011 20:29:17 +0200 Subject: 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 file changed, 2 deletions(-) (limited to 'src') 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); } /** -- cgit v1.2.3