comparison plugins/notify.c @ 8999:8f838ae3e710

[gaim-migrate @ 9774] " This patch renames the existing received-*-msg signals to receiving-*msg to fit the naming of other signals where a pointer to the message is passed (writing, sending, displaying) It adds new received-*-msg signals which are emitted after the receiving signals, in line with the other conversation signals (wrote, sent, displayed) This is necessary to allow plugins which depend on the final received message to work alongside plugins which may modify the message. One known example of this is festival-gaim alongside gaim-encryption - festival-gaim would try to "speak" the encrypted text: http://sf.net/tracker/?func=detail&aid=943216&group_id=89763&atid=591320 I've tested this with gaim-encryption and festival-gaim (locally modified so gaim-encryption uses the receiving signal and festival uses the received signal) All in-tree users of received-*-msg are updated to use receiving-*-msg if they do modify the message, the conversation-signals documentation is updated, the signals-test.c & signal-test.tcl plugins are also updated." --Stu Tomlinson committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 21 May 2004 14:33:32 +0000
parents 294ae6548d4e
children b0b544e0f246
comparison
equal deleted inserted replaced
8998:3738d1eac0ad 8999:8f838ae3e710
229 } 229 }
230 } 230 }
231 } 231 }
232 232
233 static gboolean 233 static gboolean
234 chat_recv_im(GaimAccount *account, char **who, char **text, int id, void *m) 234 chat_recv_im(GaimAccount *account, char *who, char *text, int id, void *m)
235 { 235 {
236 GaimConversation *conv = gaim_find_chat(gaim_account_get_connection(account), 236 GaimConversation *conv = gaim_find_chat(gaim_account_get_connection(account),
237 id); 237 id);
238 238
239 notify(conv, TRUE); 239 notify(conv, TRUE);
251 unnotify(conv, TRUE); 251 unnotify(conv, TRUE);
252 } 252 }
253 } 253 }
254 254
255 static gboolean 255 static gboolean
256 im_recv_im(GaimAccount *account, char **who, char **what, int *flags, void *m) 256 im_recv_im(GaimAccount *account, char *who, char *what, int flags, void *m)
257 { 257 {
258 GaimConversation *conv = gaim_find_conversation_with_account(*who, account); 258 GaimConversation *conv = gaim_find_conversation_with_account(who, account);
259 259
260 notify(conv, TRUE); 260 notify(conv, TRUE);
261 261
262 return FALSE; 262 return FALSE;
263 } 263 }