Mercurial > pidgin
comparison src/gtkutils.c @ 5879:d58406d31a1a
[gaim-migrate @ 6311]
Too many things can go wrong with gaim_accounts_get_active(), so I'm taking
it out and modifying the accounts drop-down box to just use
gaim_connections_get_all() instead.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 15 Jun 2003 04:58:09 +0000 |
parents | f336fc0a7b8b |
children | 1b85ff65be57 |
comparison
equal
deleted
inserted
replaced
5878:9e54bb2ee3b5 | 5879:d58406d31a1a |
---|---|
694 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | 694 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
695 | 695 |
696 if (show_all) | 696 if (show_all) |
697 list = gaim_accounts_get_all(); | 697 list = gaim_accounts_get_all(); |
698 else | 698 else |
699 list = gaim_accounts_get_active(); | 699 list = gaim_connections_get_all(); |
700 | 700 |
701 for (p = list, i = 0; p != NULL; p = p->next, i++) { | 701 for (p = list, i = 0; p != NULL; p = p->next, i++) { |
702 GaimPluginProtocolInfo *prpl_info = NULL; | 702 GaimPluginProtocolInfo *prpl_info = NULL; |
703 GaimPlugin *plugin; | 703 GaimPlugin *plugin; |
704 | 704 |
705 account = (GaimAccount *)p->data; | 705 if (show_all) |
706 account = (GaimAccount *)p->data; | |
707 else { | |
708 GaimConnection *gc = (GaimConnection *)p->data; | |
709 | |
710 account = gaim_connection_get_account(gc); | |
711 } | |
706 | 712 |
707 plugin = gaim_find_prpl(gaim_account_get_protocol(account)); | 713 plugin = gaim_find_prpl(gaim_account_get_protocol(account)); |
708 | 714 |
709 if (plugin != NULL) | 715 if (plugin != NULL) |
710 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(plugin); | 716 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(plugin); |