Mercurial > pidgin.yaz
comparison src/status.c @ 11551:78aad676fdb2
[gaim-migrate @ 13806]
This creates an unidle menu option for the I'dle Mak'er plugin. I like
having this.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 15 Sep 2005 14:54:23 +0000 |
parents | a26eb48d1953 |
children | b7d9d00a4ef9 |
comparison
equal
deleted
inserted
replaced
11550:ec2335d98b83 | 11551:78aad676fdb2 |
---|---|
1364 { | 1364 { |
1365 update_buddy_idle((GaimBuddy *)l->data, presence, current_time, | 1365 update_buddy_idle((GaimBuddy *)l->data, presence, current_time, |
1366 old_idle, idle); | 1366 old_idle, idle); |
1367 } | 1367 } |
1368 } | 1368 } |
1369 else if(gaim_presence_get_context(presence) == GAIM_PRESENCE_CONTEXT_ACCOUNT) | |
1370 { | |
1371 GaimConnection *gc = | |
1372 gaim_account_get_connection(gaim_presence_get_account(presence)); | |
1373 GaimPluginProtocolInfo *prpl_info = NULL; | |
1374 | |
1375 if (gc != NULL && gc->prpl != NULL) | |
1376 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
1377 | |
1378 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && | |
1379 prpl_info->set_idle) | |
1380 prpl_info->set_idle(gc, time(NULL) - idle_time); | |
1381 } | |
1369 } | 1382 } |
1370 | 1383 |
1371 void | 1384 void |
1372 gaim_presence_set_login_time(GaimPresence *presence, time_t login_time) | 1385 gaim_presence_set_login_time(GaimPresence *presence, time_t login_time) |
1373 { | 1386 { |