comparison plugins/docklet/docklet.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 4d05b6e9e9cd
comparison
equal deleted inserted replaced
8998:3738d1eac0ad 8999:8f838ae3e710
374 /* we only support global away. this is the way it is, ok? */ 374 /* we only support global away. this is the way it is, ok? */
375 docklet_update_status(); 375 docklet_update_status();
376 } 376 }
377 377
378 static gboolean 378 static gboolean
379 gaim_conv_im_recv(GaimAccount *account, char **sender, 379 gaim_conv_im_recv(GaimAccount *account, char *sender,
380 char **message, int *flags, void *data) 380 char *message, int flags, void *data)
381 { 381 {
382 /* if message queuing while away is enabled, this event could be the first 382 /* if message queuing while away is enabled, this event could be the first
383 message so we need to see if the status (and hence icon) needs changing. 383 message so we need to see if the status (and hence icon) needs changing.
384 do this when idle so that all message processing is completed, queuing 384 do this when idle so that all message processing is completed, queuing
385 etc, before we run. */ 385 etc, before we run. */