Revision: 16765
Author: thekingant
Date: 2006-08-15 00:23:13 -0700 (Tue, 15 Aug 2006)
ViewCVS: http://svn.sourceforge.net/gaim/?rev=16765&view=rev
Log Message:
-----------
A patch from Kevin Stange that should fix some idleness problems with
MSN and Yahoo
Modified Paths:
--------------
trunk/src/idle.c
Modified: trunk/src/idle.c
===================================================================
--- trunk/src/idle.c 2006-08-15 06:21:39 UTC (rev 16764)
+++ trunk/src/idle.c 2006-08-15 07:23:13 UTC (rev 16765)
@@ -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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|