| 1271 g_return_if_fail(PIDGIN_IS_ACCOUNT_EDITOR(editor)); |
1271 g_return_if_fail(PIDGIN_IS_ACCOUNT_EDITOR(editor)); |
| 1272 |
1272 |
| 1273 /* Disconnect the notify handler from the previous account. */ |
1273 /* Disconnect the notify handler from the previous account. */ |
| 1274 if(PURPLE_IS_ACCOUNT(editor->account)) { |
1274 if(PURPLE_IS_ACCOUNT(editor->account)) { |
| 1275 g_signal_handlers_disconnect_by_func(editor->account, |
1275 g_signal_handlers_disconnect_by_func(editor->account, |
| 1276 G_CALLBACK(pidgin_account_editor_connection_changed_cb), |
1276 pidgin_account_editor_connection_changed_cb, |
| 1277 editor); |
1277 editor); |
| 1278 } |
1278 } |
| 1279 |
1279 |
| 1280 if(g_set_object(&editor->account, account)) { |
1280 if(g_set_object(&editor->account, account)) { |
| 1281 if(PURPLE_IS_ACCOUNT(account)) { |
1281 if(PURPLE_IS_ACCOUNT(account)) { |