comparison plugins/signals-test.c @ 9517:0524b36c701a

[gaim-migrate @ 10344] " And hopefully i got everything updated this time around.. everything being signals_test.c, plugins/ChangeLog.API and doc/conversation-signals.dox." --Gary Kramlich committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 12 Jul 2004 19:37:07 +0000
parents 1fac0336890c
children 8b2451878e26
comparison
equal deleted inserted replaced
9516:464e2b6bc7e6 9517:0524b36c701a
412 { 412 {
413 gaim_debug_misc("signals test", "chat-left (%s)\n", 413 gaim_debug_misc("signals test", "chat-left (%s)\n",
414 gaim_conversation_get_name(conv)); 414 gaim_conversation_get_name(conv));
415 } 415 }
416 416
417 static void
418 chat_topic_changed_cb(GaimConversation *conv, const char *who,
419 const char *topic, void *data)
420 {
421 gaim_debug_misc("signals test",
422 "chat-topic-changed (%s topic changed to: \"%s\" by %s)\n",
423 gaim_conversation_get_name(conv), topic,
424 (who) ? who : "unknown");
425 }
417 /************************************************************************** 426 /**************************************************************************
418 * Core signal callbacks 427 * Core signal callbacks
419 **************************************************************************/ 428 **************************************************************************/
420 static void 429 static void
421 quitting_cb(void *data) 430 quitting_cb(void *data)
532 plugin, GAIM_CALLBACK(chat_invited_cb), NULL); 541 plugin, GAIM_CALLBACK(chat_invited_cb), NULL);
533 gaim_signal_connect(conv_handle, "chat-joined", 542 gaim_signal_connect(conv_handle, "chat-joined",
534 plugin, GAIM_CALLBACK(chat_joined_cb), NULL); 543 plugin, GAIM_CALLBACK(chat_joined_cb), NULL);
535 gaim_signal_connect(conv_handle, "chat-left", 544 gaim_signal_connect(conv_handle, "chat-left",
536 plugin, GAIM_CALLBACK(chat_left_cb), NULL); 545 plugin, GAIM_CALLBACK(chat_left_cb), NULL);
546 gaim_signal_connect(conv_handle, "chat-topic-changed",
547 plugin, GAIM_CALLBACK(chat_topic_changed_cb), NULL);
537 548
538 /* Core signals */ 549 /* Core signals */
539 gaim_signal_connect(core_handle, "quitting", 550 gaim_signal_connect(core_handle, "quitting",
540 plugin, GAIM_CALLBACK(quitting_cb), NULL); 551 plugin, GAIM_CALLBACK(quitting_cb), NULL);
541 552