diff src/conversation.c @ 9734:676cf082d29c

[gaim-migrate @ 10595] From Kevin Stange: This patch adds the conversation-updated signal which gets fired whenever something happens to update the data associated with a conversation, like a topic change or adding the person/chat to your buddy list. The signal passes back the enum value for the update type in addition to the conversation, which seems like the right thing to do. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 10 Aug 2004 00:41:33 +0000
parents 81b31af2752d
children 94c643a77913
line wrap: on
line diff
--- a/src/conversation.c	Tue Aug 10 00:29:14 2004 +0000
+++ b/src/conversation.c	Tue Aug 10 00:41:33 2004 +0000
@@ -1503,6 +1503,9 @@
 
 	if (ops != NULL && ops->updated != NULL)
 		ops->updated(conv, type);
+
+	gaim_signal_emit(gaim_conversations_get_handle(),
+					 "conversation-updated", conv, type);
 }
 
 /**************************************************************************
@@ -2896,6 +2899,12 @@
 						 gaim_value_new(GAIM_TYPE_SUBTYPE,
 										GAIM_SUBTYPE_CONVERSATION));
 
+	gaim_signal_register(handle, "conversation-updated",
+						 gaim_marshal_VOID__POINTER_UINT, NULL, 1,
+						 gaim_value_new(GAIM_TYPE_SUBTYPE,
+										GAIM_SUBTYPE_CONVERSATION),
+						 gaim_value_new(GAIM_TYPE_UINT));
+
 	gaim_signal_register(handle, "deleting-conversation",
 						 gaim_marshal_VOID__POINTER, NULL, 1,
 						 gaim_value_new(GAIM_TYPE_SUBTYPE,