[empathy/mc5: 192/483] Unref the dialog when destroying



commit d5c41662829057e80268b6771fbe7452aa36a814
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 23 16:27:36 2009 +0200

    Unref the dialog when destroying

 src/empathy-accounts-dialog.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 68f140f..6ac9eb3 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1193,6 +1193,15 @@ accounts_dialog_response_cb (GtkWidget            *widget,
 }
 
 static void
+accounts_dialog_destroy_cb (GtkObject *obj,
+			    EmpathyAccountsDialog *dialog)
+{
+	DEBUG ("%p", obj);
+
+	g_object_unref (dialog);
+}
+
+static void
 accounts_dialog_cms_ready_cb (EmpathyConnectionManagers *cms,
 			      GParamSpec *pspec,
 			      EmpathyAccountsDialog *dialog)
@@ -1233,6 +1242,7 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog)
 
 	empathy_builder_connect (gui, dialog,
 			      "accounts_dialog", "response", accounts_dialog_response_cb,
+			      "accounts_dialog", "destroy", accounts_dialog_destroy_cb,
 			      "button_create", "clicked", accounts_dialog_button_create_clicked_cb,
 			      "button_back", "clicked", accounts_dialog_button_back_clicked_cb,
 			      "button_add", "clicked", accounts_dialog_button_add_clicked_cb,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]