comparison src/conversation.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 3738d1eac0ad
children 6a17b7e2e3b2
comparison
equal deleted inserted replaced
8998:3738d1eac0ad 8999:8f838ae3e710
2704 gaim_value_new(GAIM_TYPE_SUBTYPE, 2704 gaim_value_new(GAIM_TYPE_SUBTYPE,
2705 GAIM_SUBTYPE_ACCOUNT), 2705 GAIM_SUBTYPE_ACCOUNT),
2706 gaim_value_new(GAIM_TYPE_STRING), 2706 gaim_value_new(GAIM_TYPE_STRING),
2707 gaim_value_new(GAIM_TYPE_STRING)); 2707 gaim_value_new(GAIM_TYPE_STRING));
2708 2708
2709 gaim_signal_register(handle, "received-im-msg", 2709 gaim_signal_register(handle, "receiving-im-msg",
2710 gaim_marshal_BOOLEAN__POINTER_POINTER_POINTER_POINTER, 2710 gaim_marshal_BOOLEAN__POINTER_POINTER_POINTER_POINTER,
2711 gaim_value_new(GAIM_TYPE_BOOLEAN), 4, 2711 gaim_value_new(GAIM_TYPE_BOOLEAN), 4,
2712 gaim_value_new(GAIM_TYPE_SUBTYPE, 2712 gaim_value_new(GAIM_TYPE_SUBTYPE,
2713 GAIM_SUBTYPE_ACCOUNT), 2713 GAIM_SUBTYPE_ACCOUNT),
2714 gaim_value_new_outgoing(GAIM_TYPE_STRING), 2714 gaim_value_new_outgoing(GAIM_TYPE_STRING),
2715 gaim_value_new_outgoing(GAIM_TYPE_STRING), 2715 gaim_value_new_outgoing(GAIM_TYPE_STRING),
2716 gaim_value_new_outgoing(GAIM_TYPE_UINT)); 2716 gaim_value_new_outgoing(GAIM_TYPE_UINT));
2717 2717
2718 gaim_signal_register(handle, "received-im-msg",
2719 gaim_marshal_VOID__POINTER_POINTER_POINTER_UINT,
2720 NULL, 4,
2721 gaim_value_new(GAIM_TYPE_SUBTYPE,
2722 GAIM_SUBTYPE_ACCOUNT),
2723 gaim_value_new(GAIM_TYPE_STRING),
2724 gaim_value_new(GAIM_TYPE_STRING),
2725 gaim_value_new(GAIM_TYPE_UINT));
2726
2718 gaim_signal_register(handle, "writing-chat-msg", 2727 gaim_signal_register(handle, "writing-chat-msg",
2719 gaim_marshal_BOOLEAN__POINTER_POINTER_POINTER, 2728 gaim_marshal_BOOLEAN__POINTER_POINTER_POINTER,
2720 gaim_value_new(GAIM_TYPE_BOOLEAN), 3, 2729 gaim_value_new(GAIM_TYPE_BOOLEAN), 3,
2721 gaim_value_new(GAIM_TYPE_SUBTYPE, 2730 gaim_value_new(GAIM_TYPE_SUBTYPE,
2722 GAIM_SUBTYPE_ACCOUNT), 2731 GAIM_SUBTYPE_ACCOUNT),
2763 gaim_value_new(GAIM_TYPE_SUBTYPE, 2772 gaim_value_new(GAIM_TYPE_SUBTYPE,
2764 GAIM_SUBTYPE_ACCOUNT), 2773 GAIM_SUBTYPE_ACCOUNT),
2765 gaim_value_new(GAIM_TYPE_STRING), 2774 gaim_value_new(GAIM_TYPE_STRING),
2766 gaim_value_new(GAIM_TYPE_UINT)); 2775 gaim_value_new(GAIM_TYPE_UINT));
2767 2776
2768 gaim_signal_register(handle, "received-chat-msg", 2777 gaim_signal_register(handle, "receiving-chat-msg",
2769 gaim_marshal_BOOLEAN__POINTER_POINTER_POINTER_POINTER, 2778 gaim_marshal_BOOLEAN__POINTER_POINTER_POINTER_POINTER,
2770 gaim_value_new(GAIM_TYPE_BOOLEAN), 4, 2779 gaim_value_new(GAIM_TYPE_BOOLEAN), 4,
2771 gaim_value_new(GAIM_TYPE_SUBTYPE, 2780 gaim_value_new(GAIM_TYPE_SUBTYPE,
2772 GAIM_SUBTYPE_ACCOUNT), 2781 GAIM_SUBTYPE_ACCOUNT),
2773 gaim_value_new_outgoing(GAIM_TYPE_STRING), 2782 gaim_value_new_outgoing(GAIM_TYPE_STRING),
2774 gaim_value_new_outgoing(GAIM_TYPE_STRING), 2783 gaim_value_new_outgoing(GAIM_TYPE_STRING),
2784 gaim_value_new(GAIM_TYPE_SUBTYPE,
2785 GAIM_SUBTYPE_CONVERSATION));
2786
2787 gaim_signal_register(handle, "received-chat-msg",
2788 gaim_marshal_VOID__POINTER_POINTER_POINTER_POINTER,
2789 NULL, 4,
2790 gaim_value_new(GAIM_TYPE_SUBTYPE,
2791 GAIM_SUBTYPE_ACCOUNT),
2792 gaim_value_new(GAIM_TYPE_STRING),
2793 gaim_value_new(GAIM_TYPE_STRING),
2775 gaim_value_new(GAIM_TYPE_SUBTYPE, 2794 gaim_value_new(GAIM_TYPE_SUBTYPE,
2776 GAIM_SUBTYPE_CONVERSATION)); 2795 GAIM_SUBTYPE_CONVERSATION));
2777 2796
2778 gaim_signal_register(handle, "conversation-switching", 2797 gaim_signal_register(handle, "conversation-switching",
2779 gaim_marshal_VOID__POINTER_POINTER, NULL, 2, 2798 gaim_marshal_VOID__POINTER_POINTER, NULL, 2,