src/away.h

Fri, 21 May 2004 14:33:32 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Fri, 21 May 2004 14:33:32 +0000
changeset 8999
dd434cfec86a
parent 8476
45ab15a421d8
child 9713
bb37562302a1
permissions
-rw-r--r--

[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>

8476
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
1 #ifndef _GAIM_AWAY_H_
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
2 #define _GAIM_AWAY_H_
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
3
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
4 #define GtkWidget int
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
5
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
6 int this_file;
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
7
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
8 #define A_BIG_HACK this_file;
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
9
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
10 extern void do_im_back(GtkWidget *, GtkWidget *);
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
11
45ab15a421d8 [gaim-migrate @ 9209]
Mark Doliner <markdoliner@pidgin.im>
parents:
diff changeset
12 #endif /* _GAIM_AWAY_H_ */

mercurial