Mercurial > pidgin.yaz
changeset 9107:f0be63d6d192
[gaim-migrate @ 9884]
The idle time for the buddy-idle and buddy-unidle signals should be
correct again.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 28 May 2004 05:39:33 +0000 |
parents | d6e3e05d365e |
children | 6a17b7e2e3b2 |
files | ChangeLog src/server.c |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri May 28 05:32:55 2004 +0000 +++ b/ChangeLog Fri May 28 05:39:33 2004 +0000 @@ -53,6 +53,8 @@ * Print Gadu-Gadu messages to the debug window instead of the console * Updated and standardized blist signals (Gary Kramlich) * Made the recieve-*-msg signals match the sending ones (Stu Tomlinson) + * The idle time for the buddy-idle and buddy-unidle signals should + be correct again. Preference Changes: * Added "Conversation placement - By conversation count"
--- a/src/server.c Fri May 28 05:32:55 2004 +0000 +++ b/src/server.c Fri May 28 05:39:33 2004 +0000 @@ -1136,7 +1136,6 @@ } if (!old_idle && idle) { - gaim_signal_emit(gaim_blist_get_handle(), "buddy-idle", b); if(gaim_prefs_get_bool("/core/logging/log_system") && gaim_prefs_get_bool("/core/logging/log_idle_state")) { GaimAccount *account = gaim_connection_get_account(gc); @@ -1149,8 +1148,6 @@ g_free(tmp); } } else if (old_idle && !idle) { - gaim_signal_emit(gaim_blist_get_handle(), "buddy-unidle", b); - if(gaim_prefs_get_bool("/core/logging/log_system") && gaim_prefs_get_bool("/core/logging/log_idle_state")) { GaimAccount *account = gaim_connection_get_account(gc); @@ -1204,6 +1201,14 @@ gaim_blist_update_buddy_evil(b, evil); gaim_blist_update_buddy_status(b, type); + if (!old_idle && idle) + { + gaim_signal_emit(gaim_blist_get_handle(), "buddy-idle", b); + } + else if (old_idle && !idle) + { + gaim_signal_emit(gaim_blist_get_handle(), "buddy-unidle", b); + } if (c != NULL) gaim_conversation_update(c, GAIM_CONV_UPDATE_AWAY);