comparison 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
comparison
equal deleted inserted replaced
3767:65e9ea5934c8 3768:f53370197bb9
854 gc->username, ((name == NULL)? "an anonymous person" : name), lev); 854 gc->username, ((name == NULL)? "an anonymous person" : name), lev);
855 855
856 do_error_dialog(buf2, NULL, GAIM_INFO); 856 do_error_dialog(buf2, NULL, GAIM_INFO);
857 } 857 }
858 858
859 void serv_got_typing(struct gaim_connection *gc, char *name, int timeout) { 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 show_typing(cnv); 863 update_convo_status(cnv, state);
864 } else return; 864 } else return;
865 plugin_event(event_got_typing, gc, name); 865 plugin_event(event_got_typing, gc, name);
866 do_pounce(gc, name, OPT_POUNCE_TYPING); 866 do_pounce(gc, name, OPT_POUNCE_TYPING);
867 if (timeout > 0) { 867 if (timeout > 0) {
868 if (cnv->typing_timeout) 868 if (cnv->typing_timeout)
875 void serv_got_typing_stopped(struct gaim_connection *gc, char *name) { 875 void serv_got_typing_stopped(struct gaim_connection *gc, char *name) {
876 struct conversation *c = find_conversation(name); 876 struct conversation *c = find_conversation(name);
877 if (c && c->typing_timeout) { 877 if (c && c->typing_timeout) {
878 gtk_timeout_remove (c->typing_timeout); 878 gtk_timeout_remove (c->typing_timeout);
879 } 879 }
880 reset_typing(g_strdup(name)); 880 update_convo_status(c, NOT_TYPING);
881 } 881 }
882 882
883 static void close_invite(GtkWidget *w, GtkWidget *w2) 883 static void close_invite(GtkWidget *w, GtkWidget *w2)
884 { 884 {
885 GList *str = gtk_object_get_user_data(GTK_OBJECT(w2)); 885 GList *str = gtk_object_get_user_data(GTK_OBJECT(w2));