diff 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
line wrap: on
line diff
--- a/plugins/signals-test.c	Mon Jul 12 18:00:26 2004 +0000
+++ b/plugins/signals-test.c	Mon Jul 12 19:37:07 2004 +0000
@@ -414,6 +414,15 @@
 					gaim_conversation_get_name(conv));
 }
 
+static void
+chat_topic_changed_cb(GaimConversation *conv, const char *who,
+					  const char *topic, void *data)
+{
+	gaim_debug_misc("signals test",
+					"chat-topic-changed (%s topic changed to: \"%s\" by %s)\n",
+					gaim_conversation_get_name(conv), topic,
+					(who) ? who : "unknown");
+}
 /**************************************************************************
  * Core signal callbacks
  **************************************************************************/
@@ -534,6 +543,8 @@
 						plugin, GAIM_CALLBACK(chat_joined_cb), NULL);
 	gaim_signal_connect(conv_handle, "chat-left",
 						plugin, GAIM_CALLBACK(chat_left_cb), NULL);
+	gaim_signal_connect(conv_handle, "chat-topic-changed",
+						plugin, GAIM_CALLBACK(chat_topic_changed_cb), NULL);
 
 	/* Core signals */
 	gaim_signal_connect(core_handle, "quitting",