Fri, 21 May 2004 14:33:32 +0000
[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: Luke Schierer <lschiere@pidgin.im>
| 960 | 1 | /* |
| 2 | * gaim | |
| 3 | * | |
| 8046 | 4 | * Gaim is the legal property of its developers, whose names are too numerous |
| 5 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 6 | * source distribution. | |
| 960 | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | * | |
| 22 | */ | |
| 23 | ||
|
2417
7751d1269b09
[gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2402
diff
changeset
|
24 | #ifndef _MULTI_H_ |
|
7751d1269b09
[gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2402
diff
changeset
|
25 | #define _MULTI_H_ |
| 960 | 26 | |
|
5563
d5a7852aa0cb
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5469
diff
changeset
|
27 | #include "account.h" |
|
5205
242b8aa81328
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
5136
diff
changeset
|
28 | #include "plugin.h" |
| 960 | 29 | |
|
4333
f4c095774bc2
[gaim-migrate @ 4597]
Mark Doliner <markdoliner@pidgin.im>
parents:
4111
diff
changeset
|
30 | struct proto_actions_menu { |
|
f4c095774bc2
[gaim-migrate @ 4597]
Mark Doliner <markdoliner@pidgin.im>
parents:
4111
diff
changeset
|
31 | char *label; |
|
5563
d5a7852aa0cb
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5469
diff
changeset
|
32 | void (*callback)(GaimConnection *); |
|
d5a7852aa0cb
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5469
diff
changeset
|
33 | GaimConnection *gc; |
|
4333
f4c095774bc2
[gaim-migrate @ 4597]
Mark Doliner <markdoliner@pidgin.im>
parents:
4111
diff
changeset
|
34 | }; |
|
f4c095774bc2
[gaim-migrate @ 4597]
Mark Doliner <markdoliner@pidgin.im>
parents:
4111
diff
changeset
|
35 | |
|
8986
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8952
diff
changeset
|
36 | struct plugin_actions_menu { |
|
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8952
diff
changeset
|
37 | char *label; |
|
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8952
diff
changeset
|
38 | void (*callback)(GaimPlugin *); |
|
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8952
diff
changeset
|
39 | GaimPlugin *plugin; |
|
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8952
diff
changeset
|
40 | }; |
|
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8952
diff
changeset
|
41 | |
|
2170
5c93594ff522
[gaim-migrate @ 2180]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2154
diff
changeset
|
42 | struct proto_buddy_menu { |
|
5c93594ff522
[gaim-migrate @ 2180]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2154
diff
changeset
|
43 | char *label; |
|
5563
d5a7852aa0cb
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5469
diff
changeset
|
44 | void (*callback)(GaimConnection *, const char *); |
|
d5a7852aa0cb
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5469
diff
changeset
|
45 | GaimConnection *gc; |
|
2170
5c93594ff522
[gaim-migrate @ 2180]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2154
diff
changeset
|
46 | }; |
|
5c93594ff522
[gaim-migrate @ 2180]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2154
diff
changeset
|
47 | |
|
8586
c8c7a19da549
[gaim-migrate @ 9336]
Pekka Riikonen <priikone@silcnet.org>
parents:
8170
diff
changeset
|
48 | struct proto_chat_menu { |
|
c8c7a19da549
[gaim-migrate @ 9336]
Pekka Riikonen <priikone@silcnet.org>
parents:
8170
diff
changeset
|
49 | char *label; |
|
c8c7a19da549
[gaim-migrate @ 9336]
Pekka Riikonen <priikone@silcnet.org>
parents:
8170
diff
changeset
|
50 | void (*callback)(GaimConnection *, GHashTable *); |
|
c8c7a19da549
[gaim-migrate @ 9336]
Pekka Riikonen <priikone@silcnet.org>
parents:
8170
diff
changeset
|
51 | GaimConnection *gc; |
|
c8c7a19da549
[gaim-migrate @ 9336]
Pekka Riikonen <priikone@silcnet.org>
parents:
8170
diff
changeset
|
52 | }; |
|
c8c7a19da549
[gaim-migrate @ 9336]
Pekka Riikonen <priikone@silcnet.org>
parents:
8170
diff
changeset
|
53 | |
| 8952 | 54 | struct proto_group_menu { |
| 55 | char *label; | |
| 56 | void (*callback)(GaimGroup *); | |
| 57 | }; | |
| 58 | ||
|
2204
86b6aedfc586
[gaim-migrate @ 2214]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2197
diff
changeset
|
59 | struct proto_chat_entry { |
|
86b6aedfc586
[gaim-migrate @ 2214]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2197
diff
changeset
|
60 | char *label; |
| 5234 | 61 | char *identifier; |
|
2205
68c42ce8eba6
[gaim-migrate @ 2215]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2204
diff
changeset
|
62 | char *def; |
|
2204
86b6aedfc586
[gaim-migrate @ 2214]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2197
diff
changeset
|
63 | gboolean is_int; |
|
86b6aedfc586
[gaim-migrate @ 2214]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2197
diff
changeset
|
64 | int min; |
|
86b6aedfc586
[gaim-migrate @ 2214]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2197
diff
changeset
|
65 | int max; |
| 5925 | 66 | gboolean secret; |
|
2204
86b6aedfc586
[gaim-migrate @ 2214]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2197
diff
changeset
|
67 | }; |
|
86b6aedfc586
[gaim-migrate @ 2214]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2197
diff
changeset
|
68 | |
|
2417
7751d1269b09
[gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2402
diff
changeset
|
69 | #endif /* _MULTI_H_ */ |
|
5910
023ffcb2be70
[gaim-migrate @ 6342]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
70 | |
|
023ffcb2be70
[gaim-migrate @ 6342]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
71 | /* A big line. */ |
|
023ffcb2be70
[gaim-migrate @ 6342]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
72 | /* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ |