comparison src/server.c @ 4168:ebfb80bbe1ed

[gaim-migrate @ 4397] (00:16:51) faceprint: apply my g-signal patch too! </whine> (00:17:02) ChipX86: the what? (00:17:20) faceprint: sorry (00:17:23) faceprint: g-timeout, rather (00:17:28) ChipX86: ah good (00:17:33) faceprint: http://faceprint.com/code/gaim/g-timeout.20030101.1301.diff (00:17:33) ChipX86: yes, APPLY THAT (00:17:38) ChipX86: I need that (00:17:40) LSchiere: one at a time (00:17:51) faceprint: ChipX86: you need that? (00:17:56) ChipX86: for the conversation rewrite (00:17:59) faceprint: ahh (00:18:08) faceprint: it also fixes a memleak for msn users committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 02 Jan 2003 05:20:55 +0000
parents 7002b6f16bdf
children 511c2b63caa4
comparison
equal deleted inserted replaced
4167:7002b6f16bdf 4168:ebfb80bbe1ed
188 } 188 }
189 qar->sent_away = t; 189 qar->sent_away = t;
190 } 190 }
191 191
192 if (cnv && cnv->type_again_timeout) 192 if (cnv && cnv->type_again_timeout)
193 gtk_timeout_remove(cnv->type_again_timeout); 193 g_source_remove(cnv->type_again_timeout);
194 194
195 return val; 195 return val;
196 } 196 }
197 197
198 void serv_get_info(struct gaim_connection *g, char *name) 198 void serv_get_info(struct gaim_connection *g, char *name)
879 } else return; 879 } else return;
880 plugin_event(event_got_typing, gc, name); 880 plugin_event(event_got_typing, gc, name);
881 do_pounce(gc, name, OPT_POUNCE_TYPING); 881 do_pounce(gc, name, OPT_POUNCE_TYPING);
882 if (timeout > 0) { 882 if (timeout > 0) {
883 if (cnv->typing_timeout) 883 if (cnv->typing_timeout)
884 gtk_timeout_remove (cnv->typing_timeout); 884 g_source_remove (cnv->typing_timeout);
885 cnv->typing_timeout = gtk_timeout_add(timeout * 1000,(GtkFunction)reset_typing, 885 cnv->typing_timeout = g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE,
886 g_strdup(name)); 886 timeout * 1000, reset_typing, g_strdup(name), g_free);
887 } 887 }
888 } 888 }
889 889
890 void serv_got_typing_stopped(struct gaim_connection *gc, char *name) { 890 void serv_got_typing_stopped(struct gaim_connection *gc, char *name) {
891 struct conversation *c = find_conversation(name); 891 struct conversation *c = find_conversation(name);
892 if(!c) 892 if(!c)
893 return; 893 return;
894 if (c->typing_timeout) { 894 if (c->typing_timeout) {
895 gtk_timeout_remove (c->typing_timeout); 895 g_source_remove(c->typing_timeout);
896 c->typing_timeout=0;
896 } 897 }
897 c->typing_state = NOT_TYPING; 898 c->typing_state = NOT_TYPING;
898 update_convo_status(c); 899 update_convo_status(c);
899 } 900 }
900 901