From 7d520e5258162fd396365ced44936376d9aad664 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 20 Jul 2003 15:35:27 +0000 Subject: Use connect_object for the dialog destroy signal, so we dont unref the 2003-07-20 Marco Pesenti Gritti * lib/ephy-dialog.c: (impl_construct): Use connect_object for the dialog destroy signal, so we dont unref the EphyDialog object two times. --- ChangeLog | 7 +++++++ lib/ephy-dialog.c | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 400cd14ae..1ff42a126 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-07-20 Marco Pesenti Gritti + + * lib/ephy-dialog.c: (impl_construct): + + Use connect_object for the dialog destroy signal, so + we dont unref the EphyDialog object two times. + 2003-07-20 Marco Pesenti Gritti * embed/mozilla/mozilla-embed-single.cpp: diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c index 1b182e0aa..324d9b706 100644 --- a/lib/ephy-dialog.c +++ b/lib/ephy-dialog.c @@ -1092,10 +1092,10 @@ impl_construct (EphyDialog *dialog, dialog->priv->props = init_props (properties, gxml); } - g_signal_connect (dialog->priv->dialog, - "destroy", - G_CALLBACK(dialog_destroy_cb), - dialog); + g_signal_connect_object (dialog->priv->dialog, + "destroy", + G_CALLBACK(dialog_destroy_cb), + dialog, 0); g_object_unref (gxml); } -- cgit v1.2.3