comparison src/status.c @ 11634:c7305c2d650b

[gaim-migrate @ 13910] Two fixes: 1. Don't print 2 assertion failed warnings when showing the tooltip of an idle with no status message Yahoo! buddy. This is the change in gtkblist.c 2. When an idle Yahoo! buddy signs offline, we continued to show the buddy as idle. If a buddy is offline then they are NOT idle. This is the change in status.c committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 10 Oct 2005 04:55:42 +0000
parents 45d54425dc65
children 3a05b53a589e
comparison
equal deleted inserted replaced
11633:a32bf50ee5d1 11634:c7305c2d650b
1552 gboolean 1552 gboolean
1553 gaim_presence_is_idle(const GaimPresence *presence) 1553 gaim_presence_is_idle(const GaimPresence *presence)
1554 { 1554 {
1555 g_return_val_if_fail(presence != NULL, FALSE); 1555 g_return_val_if_fail(presence != NULL, FALSE);
1556 1556
1557 return presence->idle; 1557 return gaim_presence_is_online(presence) && presence->idle;
1558 } 1558 }
1559 1559
1560 time_t 1560 time_t
1561 gaim_presence_get_idle_time(const GaimPresence *presence) 1561 gaim_presence_get_idle_time(const GaimPresence *presence)
1562 { 1562 {