comparison 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
comparison
equal deleted inserted replaced
16936:f6de19624575 17177:d761647bc7c4
968 968
969 if (im->typing_state != state) 969 if (im->typing_state != state)
970 { 970 {
971 im->typing_state = state; 971 im->typing_state = state;
972 972
973 if (state == PURPLE_TYPING) 973 switch (state)
974 { 974 {
975 purple_signal_emit(purple_conversations_get_handle(), 975 case PURPLE_TYPING:
976 "buddy-typing", im->conv->account, im->conv->name); 976 purple_signal_emit(purple_conversations_get_handle(),
977 } 977 "buddy-typing", im->conv->account, im->conv->name);
978 else if (state == PURPLE_TYPED) 978 break;
979 { 979 case PURPLE_TYPED:
980 purple_signal_emit(purple_conversations_get_handle(), 980 purple_signal_emit(purple_conversations_get_handle(),
981 "buddy-typed", im->conv->account, im->conv->name); 981 "buddy-typed", im->conv->account, im->conv->name);
982 } 982 break;
983 else if (state == PURPLE_NOT_TYPING) 983 case PURPLE_NOT_TYPING:
984 { 984 purple_signal_emit(purple_conversations_get_handle(),
985 purple_signal_emit(purple_conversations_get_handle(), 985 "buddy-typing-stopped", im->conv->account, im->conv->name);
986 "buddy-typing-stopped", im->conv->account, im->conv->name); 986 break;
987 } 987 }
988 } 988 }
989 } 989 }
990 990
991 PurpleTypingState 991 PurpleTypingState