src/conversation.c

changeset 12797
d0f51cfde6bc
parent 12639
7df970d037c3
child 12840
548fd34f1f87
--- a/src/conversation.c	Mon Jan 09 16:04:04 2006 +0000
+++ b/src/conversation.c	Mon Jan 09 21:29:53 2006 +0000
@@ -943,15 +943,8 @@
 void
 gaim_conversation_update(GaimConversation *conv, GaimConvUpdateType type)
 {
-	GaimConversationUiOps *ops;
-
 	g_return_if_fail(conv != NULL);
 
-	ops = gaim_conversation_get_ui_ops(conv);
-
-	if (ops != NULL && ops->updated != NULL)
-		ops->updated(conv, type);
-
 	gaim_signal_emit(gaim_conversations_get_handle(),
 					 "conversation-updated", conv, type);
 }
@@ -997,7 +990,21 @@
 {
 	g_return_if_fail(im != NULL);
 
-	im->typing_state = state;
+	if (im->typing_state != state)
+	{
+		im->typing_state = state;
+
+		if (state == GAIM_TYPING)
+		{
+			gaim_signal_emit(gaim_conversations_get_handle(),
+							 "buddy-typing", im->conv->account, im->conv->name);
+		}
+		else
+		{
+			gaim_signal_emit(gaim_conversations_get_handle(),
+							 "buddy-typing-stopped", im->conv->account, im->conv->name);
+		}
+	}
 }
 
 GaimTypingState

mercurial