Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
6019:272c761c52e3 | 6020:3b6f48766acb |
---|---|
742 | 742 |
743 void | 743 void |
744 gaim_window_switch_conversation(GaimWindow *win, unsigned int index) | 744 gaim_window_switch_conversation(GaimWindow *win, unsigned int index) |
745 { | 745 { |
746 GaimWindowUiOps *ops; | 746 GaimWindowUiOps *ops; |
747 GaimConversation *conv; | |
747 | 748 |
748 g_return_if_fail(win != NULL); | 749 g_return_if_fail(win != NULL); |
749 g_return_if_fail(index >= 0 && | 750 g_return_if_fail(index >= 0 && |
750 index < gaim_window_get_conversation_count(win)); | 751 index < gaim_window_get_conversation_count(win)); |
751 | 752 |
752 ops = gaim_window_get_ui_ops(win); | 753 ops = gaim_window_get_ui_ops(win); |
753 | 754 |
754 if (ops != NULL && ops->switch_conversation != NULL) | 755 if (ops != NULL && ops->switch_conversation != NULL) |
755 ops->switch_conversation(win, index); | 756 ops->switch_conversation(win, index); |
756 | 757 |
757 gaim_conversation_set_unseen( | 758 conv = gaim_window_get_conversation_at(win, index); |
758 gaim_window_get_conversation_at(win, index), 0); | 759 gaim_conversation_set_unseen(conv, 0); |
760 gaim_event_broadcast(event_conversation_switch, conv); | |
761 | |
759 } | 762 } |
760 | 763 |
761 GaimConversation * | 764 GaimConversation * |
762 gaim_window_get_active_conversation(const GaimWindow *win) | 765 gaim_window_get_active_conversation(const GaimWindow *win) |
763 { | 766 { |