Mercurial > pidgin.yaz
diff plugins/signals-test.c @ 10104:60db14d54914
[gaim-migrate @ 11131]
"This patch that makes received-im-msg and
received-chat-msg signals correspond with each other.
My motivation was to add flags to received-chat-msg,
but I also added conv to received-im-msg to make the
signals match each other."
-- Nathan Fredrickson (noif)
I also updated the receiving-im-msg and receiving-chat-msg signals to match.
Now I can finally reject patch 909745 with "this should be a plugin", which
I've wanted to be able to say for a while. Yay :)
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 16 Oct 2004 15:07:22 +0000 |
parents | a9fb4493ae22 |
children | 72a5babfa8b4 |
line wrap: on
line diff
--- a/plugins/signals-test.c Sat Oct 16 01:05:40 2004 +0000 +++ b/plugins/signals-test.c Sat Oct 16 15:07:22 2004 +0000 @@ -216,22 +216,22 @@ static gboolean receiving_im_msg_cb(GaimAccount *account, char **sender, char **buffer, - int *flags, void *data) + GaimConversation *conv, int *flags, void *data) { - gaim_debug_misc("signals test", "receiving-im-msg (%s, %s, %s, %d)\n", + gaim_debug_misc("signals test", "receiving-im-msg (%s, %s, %s, %s, %d)\n", gaim_account_get_username(account), *sender, *buffer, - *flags); + gaim_conversation_get_name(conv), *flags); return FALSE; } static void received_im_msg_cb(GaimAccount *account, char *sender, char *buffer, - int flags, void *data) + GaimConversation *conv, int flags, void *data) { - gaim_debug_misc("signals test", "received-im-msg (%s, %s, %s, %d)\n", + gaim_debug_misc("signals test", "received-im-msg (%s, %s, %s, %s, %d)\n", gaim_account_get_username(account), sender, buffer, - flags); + gaim_conversation_get_name(conv), flags); } static gboolean @@ -286,24 +286,24 @@ static gboolean receiving_chat_msg_cb(GaimAccount *account, char **sender, char **buffer, - GaimConversation *chat, void *data) + GaimConversation *chat, int *flags, void *data) { gaim_debug_misc("signals test", - "receiving-chat-msg (%s, %s, %s, %s)\n", + "receiving-chat-msg (%s, %s, %s, %s, %d)\n", gaim_account_get_username(account), *sender, *buffer, - gaim_conversation_get_name(chat)); + gaim_conversation_get_name(chat), *flags); return FALSE; } static void received_chat_msg_cb(GaimAccount *account, char *sender, char *buffer, - GaimConversation *chat, void *data) + GaimConversation *chat, int flags, void *data) { gaim_debug_misc("signals test", - "received-chat-msg (%s, %s, %s, %s)\n", + "received-chat-msg (%s, %s, %s, %s, %d)\n", gaim_account_get_username(account), sender, buffer, - gaim_conversation_get_name(chat)); + gaim_conversation_get_name(chat), flags); } static void