| 302 { |
302 { |
| 303 gaim_debug_misc("signals test", |
303 gaim_debug_misc("signals test", |
| 304 "received-chat-msg (%s, %s, %s, %s, %d)\n", |
304 "received-chat-msg (%s, %s, %s, %s, %d)\n", |
| 305 gaim_account_get_username(account), sender, buffer, |
305 gaim_account_get_username(account), sender, buffer, |
| 306 gaim_conversation_get_name(chat), flags); |
306 gaim_conversation_get_name(chat), flags); |
| 307 } |
|
| 308 |
|
| 309 static void |
|
| 310 conversation_switching_cb(GaimConversation *old_conv, |
|
| 311 GaimConversation *new_conv, void *data) |
|
| 312 { |
|
| 313 gaim_debug_misc("signals test", "conversation-switching (%s, %s)\n", |
|
| 314 gaim_conversation_get_name(old_conv), |
|
| 315 gaim_conversation_get_name(new_conv)); |
|
| 316 } |
|
| 317 |
|
| 318 static void |
|
| 319 conversation_switched_cb(GaimConversation *old_conv, |
|
| 320 GaimConversation *new_conv, void *data) |
|
| 321 { |
|
| 322 gaim_debug_misc("signals test", "conversation-switched (%s, %s)\n", |
|
| 323 gaim_conversation_get_name(old_conv), |
|
| 324 gaim_conversation_get_name(new_conv)); |
|
| 325 } |
307 } |
| 326 |
308 |
| 327 static void |
309 static void |
| 328 conversation_created_cb(GaimConversation *conv, void *data) |
310 conversation_created_cb(GaimConversation *conv, void *data) |
| 329 { |
311 { |
| 603 plugin, GAIM_CALLBACK(sent_chat_msg_cb), NULL); |
585 plugin, GAIM_CALLBACK(sent_chat_msg_cb), NULL); |
| 604 gaim_signal_connect(conv_handle, "receiving-chat-msg", |
586 gaim_signal_connect(conv_handle, "receiving-chat-msg", |
| 605 plugin, GAIM_CALLBACK(receiving_chat_msg_cb), NULL); |
587 plugin, GAIM_CALLBACK(receiving_chat_msg_cb), NULL); |
| 606 gaim_signal_connect(conv_handle, "received-chat-msg", |
588 gaim_signal_connect(conv_handle, "received-chat-msg", |
| 607 plugin, GAIM_CALLBACK(received_chat_msg_cb), NULL); |
589 plugin, GAIM_CALLBACK(received_chat_msg_cb), NULL); |
| 608 gaim_signal_connect(conv_handle, "conversation-switching", |
|
| 609 plugin, GAIM_CALLBACK(conversation_switching_cb), NULL); |
|
| 610 gaim_signal_connect(conv_handle, "conversation-switched", |
|
| 611 plugin, GAIM_CALLBACK(conversation_switched_cb), NULL); |
|
| 612 gaim_signal_connect(conv_handle, "conversation-created", |
590 gaim_signal_connect(conv_handle, "conversation-created", |
| 613 plugin, GAIM_CALLBACK(conversation_created_cb), NULL); |
591 plugin, GAIM_CALLBACK(conversation_created_cb), NULL); |
| 614 gaim_signal_connect(conv_handle, "deleting-conversation", |
592 gaim_signal_connect(conv_handle, "deleting-conversation", |
| 615 plugin, GAIM_CALLBACK(deleting_conversation_cb), NULL); |
593 plugin, GAIM_CALLBACK(deleting_conversation_cb), NULL); |
| 616 gaim_signal_connect(conv_handle, "buddy-typing", |
594 gaim_signal_connect(conv_handle, "buddy-typing", |