aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-07-23 22:27:36 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-07-30 06:13:19 +0800
commitd5c41662829057e80268b6771fbe7452aa36a814 (patch)
tree1f3f47a31e27dd2d941989de03e3c9b5f0408569 /src/empathy-accounts-dialog.c
parent5a729c2ae7018c491216eedc93129fa483cab181 (diff)
downloadgsoc2013-empathy-d5c41662829057e80268b6771fbe7452aa36a814.tar
gsoc2013-empathy-d5c41662829057e80268b6771fbe7452aa36a814.tar.gz
gsoc2013-empathy-d5c41662829057e80268b6771fbe7452aa36a814.tar.bz2
gsoc2013-empathy-d5c41662829057e80268b6771fbe7452aa36a814.tar.lz
gsoc2013-empathy-d5c41662829057e80268b6771fbe7452aa36a814.tar.xz
gsoc2013-empathy-d5c41662829057e80268b6771fbe7452aa36a814.tar.zst
gsoc2013-empathy-d5c41662829057e80268b6771fbe7452aa36a814.zip
Unref the dialog when destroying
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 68f140ff5..6ac9eb352 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,