comparison src/conversation.c @ 6640:314111e7b601

[gaim-migrate @ 7165] Changed several calls from gaim_find_conversation() to gaim_find_conversation_with_account(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 28 Aug 2003 01:18:50 +0000
parents fe9c3b58afaf
children 0c5637b5462e
comparison
equal deleted inserted replaced
6639:1b91cb6be4c3 6640:314111e7b601
135 } 135 }
136 136
137 static gboolean 137 static gboolean
138 reset_typing(gpointer data) 138 reset_typing(gpointer data)
139 { 139 {
140 char *name = (char *)data; 140 GaimConversation *c = (GaimConversation *)data;
141 GaimConversation *c = gaim_find_conversation(name);
142 GaimIm *im; 141 GaimIm *im;
143 142
144 if (!c) 143 if (!g_list_find(conversations, c))
145 return FALSE; 144 return FALSE;
146 145
147 im = GAIM_IM(c); 146 im = GAIM_IM(c);
148 147
149 gaim_im_set_typing_state(im, GAIM_NOT_TYPING); 148 gaim_im_set_typing_state(im, GAIM_NOT_TYPING);
1602 1601
1603 conv = gaim_im_get_conversation(im); 1602 conv = gaim_im_get_conversation(im);
1604 name = gaim_conversation_get_name(conv); 1603 name = gaim_conversation_get_name(conv);
1605 1604
1606 im->typing_timeout = g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE, 1605 im->typing_timeout = g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE,
1607 timeout * 1000, reset_typing, g_strdup(name), g_free); 1606 timeout * 1000, reset_typing, conv, NULL);
1608 } 1607 }
1609 1608
1610 void 1609 void
1611 gaim_im_stop_typing_timeout(GaimIm *im) 1610 gaim_im_stop_typing_timeout(GaimIm *im)
1612 { 1611 {