From: <sa...@us...> - 2006-08-24 19:56:03
|
Revision: 17021 Author: sadrul Date: 2006-08-24 12:55:43 -0700 (Thu, 24 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=17021&view=rev Log Message: ----------- Show the accounts dialog only once. Modified Paths: -------------- trunk/console/gntaccount.c Modified: trunk/console/gntaccount.c =================================================================== --- trunk/console/gntaccount.c 2006-08-24 19:41:34 UTC (rev 17020) +++ trunk/console/gntaccount.c 2006-08-24 19:55:43 UTC (rev 17021) @@ -225,7 +225,7 @@ return; prplinfo = GAIM_PLUGIN_PROTOCOL_INFO(plugin); - username = g_strdup(gaim_account_get_username(dialog->account)); + username = dialog->account ? g_strdup(gaim_account_get_username(dialog->account)) : NULL; for (iter = prplinfo->user_splits; iter; iter = iter->next) { @@ -612,6 +612,9 @@ GList *iter; GntWidget *box, *button; + if (accounts.window) + return; + accounts.window = gnt_vbox_new(FALSE); gnt_box_set_toplevel(GNT_BOX(accounts.window), TRUE); gnt_box_set_title(GNT_BOX(accounts.window), _("Accounts")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |