aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-accounts-dialog.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 4e120e1d4..1aacaff68 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -136,11 +136,6 @@ enum {
PROP_PARENT = 1
};
-static void accounts_dialog_account_display_name_changed_cb (
- EmpathyAccount *account,
- GParamSpec *pspec,
- gpointer user_data);
-
static EmpathyAccountSettings * accounts_dialog_model_get_selected_settings (
EmpathyAccountsDialog *dialog);
@@ -762,8 +757,6 @@ accounts_dialog_delete_account_response_cb (GtkDialog *message_dialog,
if (account != NULL)
{
- g_signal_handlers_disconnect_by_func (account,
- accounts_dialog_account_display_name_changed_cb, account_dialog);
empathy_account_remove_async (account, NULL, NULL);
g_object_unref (account);
account = NULL;
@@ -1281,8 +1274,9 @@ accounts_dialog_add_account (EmpathyAccountsDialog *dialog,
TP_CONNECTION_STATUS_DISCONNECTED,
dialog);
- g_signal_connect (account, "notify::display-name",
- G_CALLBACK (accounts_dialog_account_display_name_changed_cb), dialog);
+ empathy_signal_connect_weak (account, "notify::display-name",
+ G_CALLBACK (accounts_dialog_account_display_name_changed_cb),
+ G_OBJECT (dialog));
g_object_unref (settings);
}
@@ -1337,8 +1331,6 @@ accounts_dialog_account_removed_cb (EmpathyAccountManager *manager,
if (accounts_dialog_get_account_iter (dialog, account, &iter))
{
- g_signal_handlers_disconnect_by_func (account,
- accounts_dialog_account_display_name_changed_cb, dialog);
gtk_list_store_remove (GTK_LIST_STORE (
gtk_tree_view_get_model (GTK_TREE_VIEW (priv->treeview))), &iter);
}