Mercurial > pidgin
diff console/gntaccount.c @ 14422:84a480acb6ad
[gaim-migrate @ 17130]
Show the accounts-dialog at startup if there's no enabled account.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 02 Sep 2006 20:17:43 +0000 |
parents | f74c19f2da30 |
children | 81650a27f253 |
line wrap: on
line diff
--- a/console/gntaccount.c Sat Sep 02 19:29:06 2006 +0000 +++ b/console/gntaccount.c Sat Sep 02 20:17:43 2006 +0000 @@ -693,6 +693,8 @@ void gg_accounts_init() { + GList *iter; + gaim_signal_connect(gaim_accounts_get_handle(), "account-added", gg_accounts_get_handle(), GAIM_CALLBACK(account_added_callback), NULL); @@ -700,7 +702,12 @@ gg_accounts_get_handle(), GAIM_CALLBACK(account_removed_callback), NULL); - gg_accounts_show_all(); + for (iter = gaim_accounts_get_all(); iter; iter = iter->next) { + if (gaim_account_get_enabled(iter->data, GAIM_GNT_UI)) + break; + } + if (!iter) + gg_accounts_show_all(); } void gg_accounts_uninit()