From: <sa...@us...> - 2006-09-02 20:18:01
|
Revision: 17130 http://svn.sourceforge.net/gaim/?rev=17130&view=rev Author: sadrul Date: 2006-09-02 13:17:43 -0700 (Sat, 02 Sep 2006) Log Message: ----------- Show the accounts-dialog at startup if there's no enabled account. Modified Paths: -------------- trunk/console/gntaccount.c trunk/console/libgnt/wms/s.c Modified: trunk/console/gntaccount.c =================================================================== --- trunk/console/gntaccount.c 2006-09-02 19:29:06 UTC (rev 17129) +++ trunk/console/gntaccount.c 2006-09-02 20:17:43 UTC (rev 17130) @@ -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() Modified: trunk/console/libgnt/wms/s.c =================================================================== --- trunk/console/libgnt/wms/s.c 2006-09-02 19:29:06 UTC (rev 17129) +++ trunk/console/libgnt/wms/s.c 2006-09-02 20:17:43 UTC (rev 17130) @@ -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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |