Mercurial > pidgin.yaz
comparison src/pounce.c @ 11706:bcc49c25ef90
[gaim-migrate @ 13997]
Generalize the buddy-typing and buddy-typing-stopped signals.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 21 Oct 2005 19:03:51 +0000 |
parents | bb0d7b719af2 |
children | 69602de55fe9 |
comparison
equal
deleted
inserted
replaced
11705:0906a3e9626c | 11706:bcc49c25ef90 |
---|---|
947 { | 947 { |
948 gaim_pounce_execute(buddy->account, buddy->name, event); | 948 gaim_pounce_execute(buddy->account, buddy->name, event); |
949 } | 949 } |
950 | 950 |
951 static void | 951 static void |
952 buddy_typing_cb(GaimConversation *conv, void *data) | 952 buddy_typing_cb(GaimAccount *account, const char *name, void *data) |
953 { | 953 { |
954 GaimAccount *account = gaim_conversation_get_account(conv); | 954 GaimConversation *conv; |
955 const char *name = gaim_conversation_get_name(conv); | 955 |
956 | 956 conv == gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, account); |
957 if (gaim_find_buddy(account, name) != NULL) | 957 if (conv != NULL) |
958 { | 958 { |
959 GaimPounceEvent event; | 959 GaimPounceEvent event; |
960 | 960 |
961 event = (gaim_conv_im_get_typing_state(GAIM_CONV_IM(conv)) == GAIM_TYPING | 961 event = (gaim_conv_im_get_typing_state(GAIM_CONV_IM(conv)) == GAIM_TYPING |
962 ? GAIM_POUNCE_TYPING : GAIM_POUNCE_TYPING_STOPPED); | 962 ? GAIM_POUNCE_TYPING : GAIM_POUNCE_TYPING_STOPPED); |