# HG changeset patch # User Sadrul Habib Chowdhury # Date 1157228263 0 # Node ID 84a480acb6ad8f98ba3c8c198092274c568fc3c6 # Parent 553bbd68387e8b1bd58d1b70137189dfe9fca1f2 [gaim-migrate @ 17130] Show the accounts-dialog at startup if there's no enabled account. committer: Tailor Script diff -r 553bbd68387e -r 84a480acb6ad console/gntaccount.c --- 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() diff -r 553bbd68387e -r 84a480acb6ad console/libgnt/wms/s.c --- a/console/libgnt/wms/s.c Sat Sep 02 19:29:06 2006 +0000 +++ b/console/libgnt/wms/s.c Sat Sep 02 20:17:43 2006 +0000 @@ -14,6 +14,7 @@ gnt_widget_get_size(win, &w, &h); wresize(win->window, h, w + 1); mvwvline(win->window, 0, w, ACS_VLINE | COLOR_PAIR(GNT_COLOR_NORMAL), h); + touchwin(win->window); } static void