comparison plugins/SIGNALS @ 133:e277d5f0c1dd

[gaim-migrate @ 143] Let's see if I can remember everything I did: - Fixed a bug I let slip. If you choose the new option to not play login sounds when you log in, and then quit before the timeout is up, it would save that you didn't want login sounds at all. - Added two new plugin events: event_away and event_buddy_away. - Made GtkWidget *imaway in away.c and void play(uchar *, int) in sound.c not static any more (though not referenced in gaim.h). This is so plugins can use those (and not have to worry about writing their own sound code). - Wrote a quick plugin to auto-iconify windows when you go away. I had just been locally patching my own copy, since I figured it wasn't worth including as an option. It also demonstrates some of the issues of deciding between USE_APPLET and not. Perhaps plugins are the way to go with some things that would otherwise have been options (for example, the Lag-O-Meter is one of those things that could possibly have been a plugin instead of hard-coded in). I think that's everything. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 19 Apr 2000 02:04:30 +0000
parents 395a8593918f
children 4e91b92f91a7
comparison
equal deleted inserted replaced
132:f12425e6660d 133:e277d5f0c1dd
1 enum gaim_event { 1 enum gaim_event {
2 event_signon = 0, 2 event_signon = 0,
3 event_signoff, 3 event_signoff,
4 event_away,
4 event_im_recv, 5 event_im_recv,
5 event_im_send, 6 event_im_send,
6 event_buddy_signon, 7 event_buddy_signon,
7 event_buddy_signoff, 8 event_buddy_signoff,
9 event_buddy_away,
8 event_blist_update 10 event_blist_update
9 }; 11 };
10 12
11 To add a signal handler, call the fuction gaim_signal_connect with the 13 To add a signal handler, call the fuction gaim_signal_connect with the
12 following arguments: 14 following arguments:
42 useful information here) from other places. (Read gaim.h for details). 44 useful information here) from other places. (Read gaim.h for details).
43 45
44 event_signoff: 46 event_signoff:
45 (none) 47 (none)
46 48
49 event_away:
50 (none)
51
47 event_im_recv: 52 event_im_recv:
48 char **who, char **text 53 char **who, char **text
49 54
50 'who' is the username of the person who sent the message. 55 'who' is the username of the person who sent the message.
51 'text' is the actual strict text (with HTML tags and all) of the 56 'text' is the actual strict text (with HTML tags and all) of the
73 event_buddy_signoff: 78 event_buddy_signoff:
74 char *who 79 char *who
75 80
76 'who' is who signed off. 81 'who' is who signed off.
77 82
83 event_buddy_away:
84 char *who
85
86 'who' is who went away.
87
78 event_blist_update: 88 event_blist_update:
79 (none) 89 (none)
80 90
81 This event is called when the buddylist is updated (automatically every 91 This event is called when the buddylist is updated (automatically every
82 20 seconds) 92 20 seconds)