Mercurial > pidgin.yaz
changeset 14127:9a4b76c288aa
[gaim-migrate @ 16765]
A patch from Kevin Stange that should fix some idleness problems with
MSN and Yahoo
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 15 Aug 2006 07:23:13 +0000 |
parents | b71bfeaaed58 |
children | a8a033a89ee0 |
files | src/idle.c |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/idle.c Tue Aug 15 06:21:39 2006 +0000 +++ b/src/idle.c Tue Aug 15 07:23:13 2006 +0000 @@ -239,12 +239,20 @@ } static void +signing_on_cb(GaimConnection *gc, void *data) +{ + /* When signing on a new account, check if the account should be idle */ + check_idleness(); +} + +static void signing_off_cb(GaimConnection *gc, void *data) { GaimAccount *account; account = gaim_connection_get_account(gc); - idled_accts = g_list_remove(idled_accts, account); + set_account_unidle(account); + unset_account_autoaway(gc); } void @@ -288,6 +296,9 @@ gaim_signal_connect(gaim_conversations_get_handle(), "sent-im-msg", gaim_idle_get_handle(), GAIM_CALLBACK(im_msg_sent_cb), NULL); + gaim_signal_connect(gaim_connections_get_handle(), "signing-on", + gaim_idle_get_handle(), + GAIM_CALLBACK(signing_on_cb), NULL); gaim_signal_connect(gaim_connections_get_handle(), "signing-off", gaim_idle_get_handle(), GAIM_CALLBACK(signing_off_cb), NULL);