Mercurial > pidgin
diff libpurple/conversation.c @ 17177:d761647bc7c4
merge of '0a63bea05479d51972432a195d0c97c0309fbcf4'
and '8ff17e25184faaad69c1329218cd6898bc3e4c26'
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Sun, 13 May 2007 21:27:13 +0000 |
parents | 73556f13c3b5 |
children | 7ade887fd3f6 |
line wrap: on
line diff
--- a/libpurple/conversation.c Tue May 08 02:44:49 2007 +0000 +++ b/libpurple/conversation.c Sun May 13 21:27:13 2007 +0000 @@ -970,20 +970,20 @@ { im->typing_state = state; - if (state == PURPLE_TYPING) - { - purple_signal_emit(purple_conversations_get_handle(), - "buddy-typing", im->conv->account, im->conv->name); - } - else if (state == PURPLE_TYPED) + switch (state) { - purple_signal_emit(purple_conversations_get_handle(), - "buddy-typed", im->conv->account, im->conv->name); - } - else if (state == PURPLE_NOT_TYPING) - { - purple_signal_emit(purple_conversations_get_handle(), - "buddy-typing-stopped", im->conv->account, im->conv->name); + case PURPLE_TYPING: + purple_signal_emit(purple_conversations_get_handle(), + "buddy-typing", im->conv->account, im->conv->name); + break; + case PURPLE_TYPED: + purple_signal_emit(purple_conversations_get_handle(), + "buddy-typed", im->conv->account, im->conv->name); + break; + case PURPLE_NOT_TYPING: + purple_signal_emit(purple_conversations_get_handle(), + "buddy-typing-stopped", im->conv->account, im->conv->name); + break; } } }