diff 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
line wrap: on
line diff
--- a/src/gtkutils.c	Sun Jun 15 03:22:55 2003 +0000
+++ b/src/gtkutils.c	Sun Jun 15 04:58:09 2003 +0000
@@ -696,13 +696,19 @@
 	if (show_all)
 		list = gaim_accounts_get_all();
 	else
-		list = gaim_accounts_get_active();
+		list = gaim_connections_get_all();
 
 	for (p = list, i = 0; p != NULL; p = p->next, i++) {
 		GaimPluginProtocolInfo *prpl_info = NULL;
 		GaimPlugin *plugin;
 
-		account = (GaimAccount *)p->data;
+		if (show_all)
+			account = (GaimAccount *)p->data;
+		else {
+			GaimConnection *gc = (GaimConnection *)p->data;
+
+			account = gaim_connection_get_account(gc);
+		}
 
 		plugin = gaim_find_prpl(gaim_account_get_protocol(account));