Mercurial > pidgin.yaz
comparison plugins/notify.c @ 6620:7230e5920911
[gaim-migrate @ 7144]
Patch from Ari Pollak to bring the notify plugin's signals into late
August of 2003. Thanks, Ari.
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Mon, 25 Aug 2003 00:39:39 +0000 |
parents | 70d5122bc3ff |
children | b0913ab92893 |
comparison
equal
deleted
inserted
replaced
6619:61d516a3d4a8 | 6620:7230e5920911 |
---|---|
198 | 198 |
199 return 0; | 199 return 0; |
200 } | 200 } |
201 | 201 |
202 static gboolean | 202 static gboolean |
203 chat_recv_im(GaimAccount *account, GaimConversation *conv, char **who, | 203 chat_recv_im(GaimAccount *account, char **who, char **text, int id, void *m) |
204 char **text) | |
205 { | 204 { |
205 GaimConversation *conv = gaim_find_chat( | |
206 gaim_account_get_connection(account), | |
207 id); | |
206 if (conv) | 208 if (conv) |
207 notify(conv); | 209 notify(conv); |
208 | 210 |
209 return FALSE; | 211 return FALSE; |
210 } | 212 } |
211 | 213 |
212 static void chat_sent_im(GaimConversation *c, char **text) { | 214 static void chat_sent_im(GaimAccount *account, char *text, int id, void *m) { |
213 if (c) | 215 GaimConversation *conv = gaim_find_chat( |
214 unnotify(c); | 216 gaim_account_get_connection(account), |
217 id); | |
218 | |
219 if (conv) | |
220 unnotify(conv); | |
215 } | 221 } |
216 | 222 |
217 static gboolean | 223 static gboolean |
218 im_recv_im(GaimAccount *account, GaimConversation *conv, char **who, | 224 im_recv_im(GaimAccount *account, char **who, char **what, int *flags, void *m) |
219 char **what, int *flags, void *m) | |
220 { | 225 { |
226 GaimConversation *conv = gaim_find_conversation_with_account(*who, account); | |
227 | |
221 if (conv) | 228 if (conv) |
222 notify(conv); | 229 notify(conv); |
223 | 230 |
224 return FALSE; | 231 return FALSE; |
225 } | 232 } |
226 | 233 |
227 static void im_sent_im(GaimConversation *conv, char **what, void *m) { | 234 static void im_sent_im(GaimAccount *account, char *who, void *m) { |
235 GaimConversation *conv = gaim_find_conversation_with_account(who, account); | |
236 | |
228 if (conv) | 237 if (conv) |
229 unnotify(conv); | 238 unnotify(conv); |
230 } | 239 } |
231 | 240 |
232 static int attach_signals(GaimConversation *c) { | 241 static int attach_signals(GaimConversation *c) { |