Mercurial > pidgin.yaz
comparison console/gntaccount.c @ 14326:f74c19f2da30
[gaim-migrate @ 17021]
Show the accounts dialog only once.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 24 Aug 2006 19:55:43 +0000 |
parents | 2d1b41e3cf0d |
children | 84a480acb6ad |
comparison
equal
deleted
inserted
replaced
14325:985e5e3f6f2c | 14326:f74c19f2da30 |
---|---|
223 plugin = gnt_combo_box_get_selected_data(GNT_COMBO_BOX(dialog->protocol)); | 223 plugin = gnt_combo_box_get_selected_data(GNT_COMBO_BOX(dialog->protocol)); |
224 if (!plugin) | 224 if (!plugin) |
225 return; | 225 return; |
226 prplinfo = GAIM_PLUGIN_PROTOCOL_INFO(plugin); | 226 prplinfo = GAIM_PLUGIN_PROTOCOL_INFO(plugin); |
227 | 227 |
228 username = g_strdup(gaim_account_get_username(dialog->account)); | 228 username = dialog->account ? g_strdup(gaim_account_get_username(dialog->account)) : NULL; |
229 | 229 |
230 for (iter = prplinfo->user_splits; iter; iter = iter->next) | 230 for (iter = prplinfo->user_splits; iter; iter = iter->next) |
231 { | 231 { |
232 GaimAccountUserSplit *split = iter->data; | 232 GaimAccountUserSplit *split = iter->data; |
233 GntWidget *entry; | 233 GntWidget *entry; |
610 void gg_accounts_show_all() | 610 void gg_accounts_show_all() |
611 { | 611 { |
612 GList *iter; | 612 GList *iter; |
613 GntWidget *box, *button; | 613 GntWidget *box, *button; |
614 | 614 |
615 if (accounts.window) | |
616 return; | |
617 | |
615 accounts.window = gnt_vbox_new(FALSE); | 618 accounts.window = gnt_vbox_new(FALSE); |
616 gnt_box_set_toplevel(GNT_BOX(accounts.window), TRUE); | 619 gnt_box_set_toplevel(GNT_BOX(accounts.window), TRUE); |
617 gnt_box_set_title(GNT_BOX(accounts.window), _("Accounts")); | 620 gnt_box_set_title(GNT_BOX(accounts.window), _("Accounts")); |
618 gnt_box_set_pad(GNT_BOX(accounts.window), 0); | 621 gnt_box_set_pad(GNT_BOX(accounts.window), 0); |
619 gnt_box_set_alignment(GNT_BOX(accounts.window), GNT_ALIGN_MID); | 622 gnt_box_set_alignment(GNT_BOX(accounts.window), GNT_ALIGN_MID); |