# HG changeset patch # User Daniel Atallah # Date 1131500188 0 # Node ID 5a63ea24ac83b036a209dc43cff04542bb831a07 # Parent bdf8081b1bc1bbe4f4c637a55431a315d1299c9f [gaim-migrate @ 14308] Fix from sadrul for updating the Conv. tab icon when the buddy's idle status changes. committer: Tailor Script diff -r bdf8081b1bc1 -r 5a63ea24ac83 src/status.c --- a/src/status.c Wed Nov 09 01:15:47 2005 +0000 +++ b/src/status.c Wed Nov 09 01:36:28 2005 +0000 @@ -1260,6 +1260,7 @@ time_t current_time, gboolean old_idle, gboolean idle) { GaimBlistUiOps *ops = gaim_get_blist()->ui_ops; + GaimConversation *conv; if (!old_idle && idle) { @@ -1294,8 +1295,23 @@ gaim_contact_invalidate_priority_buddy(gaim_buddy_get_contact(buddy)); + /* Should this be done here? It'd perhaps make more sense to + * connect to buddy-[un]idle signals and update from there + */ + if (ops != NULL && ops->update != NULL) ops->update(gaim_get_blist(), (GaimBlistNode *)buddy); + + conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, + gaim_buddy_get_name(buddy), + gaim_buddy_get_account(buddy)); + if (conv) + { + GaimConversationUiOps *conv_ops; + conv_ops = gaim_conversation_get_ui_ops(conv); + if (conv_ops && conv_ops->updated) + conv_ops->updated(conv, GAIM_CONV_UPDATE_AWAY); + } } void