diff src/server.c @ 3768:f53370197bb9

[gaim-migrate @ 3907] Tri-state typing notification (typing, typed, and no longer typing) by Nathan D. Walp committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 20 Oct 2002 19:38:36 +0000
parents ddc4bfd2c825
children aed40c72c818
line wrap: on
line diff
--- a/src/server.c	Sun Oct 20 19:08:21 2002 +0000
+++ b/src/server.c	Sun Oct 20 19:38:36 2002 +0000
@@ -856,11 +856,11 @@
 	do_error_dialog(buf2, NULL, GAIM_INFO);
 }
 
-void serv_got_typing(struct gaim_connection *gc, char *name, int timeout) {
+void serv_got_typing(struct gaim_connection *gc, char *name, int timeout, int state) {
 	struct conversation *cnv = find_conversation(name);
 	 if (cnv) {
 		 set_convo_gc(cnv, gc);
-		 show_typing(cnv);
+		 update_convo_status(cnv, state);
 	} else return;
 	 plugin_event(event_got_typing, gc, name);
 	 do_pounce(gc, name, OPT_POUNCE_TYPING);
@@ -877,7 +877,7 @@
 	if (c && c->typing_timeout) {
 		gtk_timeout_remove (c->typing_timeout);
 	}
-	reset_typing(g_strdup(name));
+	update_convo_status(c, NOT_TYPING);
 }
 
 static void close_invite(GtkWidget *w, GtkWidget *w2)