libpurple/protocols/gg/gg.c

branch
soc.2013.gobjectification
changeset 34670
9bd5bd903dc7
parent 34632
ebe6b2a60305
child 34696
6e0d13978666
--- a/libpurple/protocols/gg/gg.c	Sat Jun 29 03:40:25 2013 +0530
+++ b/libpurple/protocols/gg/gg.c	Sat Jun 29 04:37:14 2013 +0530
@@ -458,7 +458,7 @@
 
 	from = g_strdup_printf("%u", uin);
 	if (length)
-		serv_got_typing(gc, from, 0, PURPLE_IM_CONVERSATION_TYPING);
+		serv_got_typing(gc, from, 0, PURPLE_IM_TYPING);
 	else
 		serv_got_typing_stopped(gc, from);
 	g_free(from);
@@ -1139,17 +1139,17 @@
 	return ret;
 }
 
-static unsigned int ggp_send_typing(PurpleConnection *gc, const char *name, PurpleIMConversationTypingState state)
+static unsigned int ggp_send_typing(PurpleConnection *gc, const char *name, PurpleIMTypingState state)
 {
 	GGPInfo *info = purple_connection_get_protocol_data(gc);
 	int dummy_length; // we don't send real length of typed message
 	
-	if (state == PURPLE_IM_CONVERSATION_TYPED) // not supported
+	if (state == PURPLE_IM_TYPED) // not supported
 		return 1;
 	
-	if (state == PURPLE_IM_CONVERSATION_TYPING)
+	if (state == PURPLE_IM_TYPING)
 		dummy_length = (int)g_random_int();
-	else // PURPLE_IM_CONVERSATION_NOT_TYPING
+	else // PURPLE_IM_NOT_TYPING
 		dummy_length = 0;
 	
 	gg_typing_notification(
@@ -1214,7 +1214,7 @@
 	ggp_confer_add_new(gc, chat_name);
 	conv = serv_got_joined_chat(gc, info->chats_count, chat_name);
 	purple_chat_conversation_add_user(conv, purple_account_get_username(account),
-				NULL, PURPLE_CHAT_CONVERSATION_BUDDY_NONE, TRUE);
+				NULL, PURPLE_CHAT_USER_NONE, TRUE);
 }
 
 static char *ggp_get_chat_name(GHashTable *data) {

mercurial