comparison src/server.c @ 3787:aed40c72c818

[gaim-migrate @ 3927] more bugs in typing notificatin (surprise surprise) fixed by faceprint committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 22 Oct 2002 16:21:55 +0000
parents f53370197bb9
children fb519383a058
comparison
equal deleted inserted replaced
3786:4c9356a5231c 3787:aed40c72c818
858 858
859 void serv_got_typing(struct gaim_connection *gc, char *name, int timeout, int state) { 859 void serv_got_typing(struct gaim_connection *gc, char *name, int timeout, int state) {
860 struct conversation *cnv = find_conversation(name); 860 struct conversation *cnv = find_conversation(name);
861 if (cnv) { 861 if (cnv) {
862 set_convo_gc(cnv, gc); 862 set_convo_gc(cnv, gc);
863 update_convo_status(cnv, state); 863 cnv->typing_state = state;
864 update_convo_status(cnv);
864 } else return; 865 } else return;
865 plugin_event(event_got_typing, gc, name); 866 plugin_event(event_got_typing, gc, name);
866 do_pounce(gc, name, OPT_POUNCE_TYPING); 867 do_pounce(gc, name, OPT_POUNCE_TYPING);
867 if (timeout > 0) { 868 if (timeout > 0) {
868 if (cnv->typing_timeout) 869 if (cnv->typing_timeout)
872 } 873 }
873 } 874 }
874 875
875 void serv_got_typing_stopped(struct gaim_connection *gc, char *name) { 876 void serv_got_typing_stopped(struct gaim_connection *gc, char *name) {
876 struct conversation *c = find_conversation(name); 877 struct conversation *c = find_conversation(name);
877 if (c && c->typing_timeout) { 878 if(!c)
879 return;
880 if (c->typing_timeout) {
878 gtk_timeout_remove (c->typing_timeout); 881 gtk_timeout_remove (c->typing_timeout);
879 } 882 }
880 update_convo_status(c, NOT_TYPING); 883 c->typing_state = NOT_TYPING;
884 update_convo_status(c);
881 } 885 }
882 886
883 static void close_invite(GtkWidget *w, GtkWidget *w2) 887 static void close_invite(GtkWidget *w, GtkWidget *w2)
884 { 888 {
885 GList *str = gtk_object_get_user_data(GTK_OBJECT(w2)); 889 GList *str = gtk_object_get_user_data(GTK_OBJECT(w2));