diff src/conversation.c @ 6020:3b6f48766acb

[gaim-migrate @ 6470] Yeah, this *should* work. But maybe it won't. I sure as hell ain't testin it. That's what we pay you for you. This is a plugin event that gets triggered when the user switches tabs in a window. Used in conjunction with GTK signals, you should be able to get a good idea of when a conversation has taken focus. Maybe now the notify plugin can be fixed. While doing this, I noticed that a lot of the plugin documentation stuff is woefully outdated. Someone who wants to get involved with a non-coding project is welcome to send a patch. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 05 Jul 2003 03:09:43 +0000
parents 1e4a574bb46d
children 54c37db13279
line wrap: on
line diff
--- a/src/conversation.c	Sat Jul 05 01:49:07 2003 +0000
+++ b/src/conversation.c	Sat Jul 05 03:09:43 2003 +0000
@@ -744,6 +744,7 @@
 gaim_window_switch_conversation(GaimWindow *win, unsigned int index)
 {
 	GaimWindowUiOps *ops;
+	GaimConversation *conv;
 
 	g_return_if_fail(win != NULL);
 	g_return_if_fail(index >= 0 &&
@@ -754,8 +755,10 @@
 	if (ops != NULL && ops->switch_conversation != NULL)
 		ops->switch_conversation(win, index);
 
-	gaim_conversation_set_unseen(
-		gaim_window_get_conversation_at(win, index), 0);
+	conv = gaim_window_get_conversation_at(win, index);
+	gaim_conversation_set_unseen(conv, 0);
+	gaim_event_broadcast(event_conversation_switch, conv);
+
 }
 
 GaimConversation *