pidgin/pidginaccounteditor.c

changeset 41865
41e66d907bc9
parent 41863
0067a0ff5b74
child 41928
ab75bc798d3a
equal deleted inserted replaced
41864:6f490dec468f 41865:41e66d907bc9
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

mercurial