diff src/buddyicon.c @ 10246:a66cf83552dc

[gaim-migrate @ 11386] I changed gaim_find_conversation and gaim_find_conversation_with_account The first parameter is now one of GAIM_CONV_IM, GAIM_CONV_CHAT or GAIM_CONV_ANY. Unfortunately, this changes a bajillion files. Please look over this and make sure I use the correct type everywhere. Especially in Novell and MSN, and somewhat in SILC. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 23 Nov 2004 06:14:15 +0000
parents 7aa5a20519ee
children 748aa3c6de36
line wrap: on
line diff
--- a/src/buddyicon.c	Tue Nov 23 05:53:59 2004 +0000
+++ b/src/buddyicon.c	Tue Nov 23 06:14:15 2004 +0000
@@ -105,8 +105,8 @@
 		account  = gaim_buddy_icon_get_account(icon);
 		username = gaim_buddy_icon_get_username(icon);
 
-		conv = gaim_find_conversation_with_account(username, account);
-		if (conv != NULL && gaim_conversation_get_type(conv) == GAIM_CONV_IM)
+		conv = gaim_find_conversation_with_account(GAIM_CONV_IM, username, account);
+		if (conv != NULL)
 			gaim_conv_im_set_icon(GAIM_CONV_IM(conv), NULL);
 
 		for (list = sl = gaim_find_buddies(account, username); sl != NULL;
@@ -190,9 +190,9 @@
 
 	g_slist_free(list);
 
-	conv = gaim_find_conversation_with_account(username, account);
+	conv = gaim_find_conversation_with_account(GAIM_CONV_IM, username, account);
 
-	if (conv != NULL && gaim_conversation_get_type(conv) == GAIM_CONV_IM)
+	if (conv != NULL)
 		gaim_conv_im_set_icon(GAIM_CONV_IM(conv), icon);
 }