| 706 pidgin_account_editor_set_account(PidginAccountEditor *editor, |
706 pidgin_account_editor_set_account(PidginAccountEditor *editor, |
| 707 PurpleAccount *account) |
707 PurpleAccount *account) |
| 708 { |
708 { |
| 709 if(g_set_object(&editor->account, account)) { |
709 if(g_set_object(&editor->account, account)) { |
| 710 if(PURPLE_IS_ACCOUNT(account)) { |
710 if(PURPLE_IS_ACCOUNT(account)) { |
| 711 g_signal_connect(account, "notify::connection", |
711 g_signal_connect_object(account, "notify::connection", |
| 712 G_CALLBACK(pidgin_account_editor_connection_changed_cb), |
712 G_CALLBACK(pidgin_account_editor_connection_changed_cb), |
| 713 editor); |
713 editor, 0); |
| 714 } |
714 } |
| 715 |
715 |
| 716 g_object_notify_by_pspec(G_OBJECT(editor), properties[PROP_ACCOUNT]); |
716 g_object_notify_by_pspec(G_OBJECT(editor), properties[PROP_ACCOUNT]); |
| 717 } |
717 } |
| 718 |
718 |