Mercurial > pidgin
comparison finch/gntaccount.c @ 17816:e2e709e5446b
If there's no account at startup, sohw the 'New Account' dialog too.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 30 May 2007 06:23:06 +0000 |
parents | f8e3b38f8e12 |
children | 58e28ccf08e6 |
comparison
equal
deleted
inserted
replaced
17815:c7716cd81f33 | 17816:e2e709e5446b |
---|---|
743 PURPLE_CALLBACK(account_abled_cb), GINT_TO_POINTER(FALSE)); | 743 PURPLE_CALLBACK(account_abled_cb), GINT_TO_POINTER(FALSE)); |
744 purple_signal_connect(purple_accounts_get_handle(), "account-enabled", | 744 purple_signal_connect(purple_accounts_get_handle(), "account-enabled", |
745 finch_accounts_get_handle(), | 745 finch_accounts_get_handle(), |
746 PURPLE_CALLBACK(account_abled_cb), GINT_TO_POINTER(TRUE)); | 746 PURPLE_CALLBACK(account_abled_cb), GINT_TO_POINTER(TRUE)); |
747 | 747 |
748 for (iter = purple_accounts_get_all(); iter; iter = iter->next) { | 748 iter = purple_accounts_get_all(); |
749 if (purple_account_get_enabled(iter->data, FINCH_UI)) | 749 if (iter) { |
750 break; | 750 for (; iter; iter = iter->next) { |
751 } | 751 if (purple_account_get_enabled(iter->data, FINCH_UI)) |
752 if (!iter) | 752 break; |
753 } | |
754 if (!iter) | |
755 finch_accounts_show_all(); | |
756 } else { | |
757 edit_account(NULL); | |
753 finch_accounts_show_all(); | 758 finch_accounts_show_all(); |
759 } | |
754 } | 760 } |
755 | 761 |
756 void finch_accounts_uninit() | 762 void finch_accounts_uninit() |
757 { | 763 { |
758 if (accounts.window) | 764 if (accounts.window) |