Mercurial > pidgin.yaz
diff src/blist.c @ 9927:fb08a0973b3e
[gaim-migrate @ 10819]
" Currently, the "loggedin" parameter of
serv_got_update() is of type int and used as a boolean.
I updated it and all references to be gboolean.
I also noticed that "presence" in
gaim_blist_update_buddy_presence() is also a really
boolean. of whether or not the buddy is currently
online. There seemed to be some confusion,
particularly in the silc plugin which tried to use a
GaimBuddyPresenceState (coincidentally (or perhaps not)
GAIM_BUDDY_OFFLINE and GAIM_BUDDY_ONLINE work as FALSE
and TRUE respectively). The value passed to
gaim_blist_update_buddy_presence() doesn't directly
become the buddy presence state and this patch helps
avoid confusion in this respect." --Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 01 Sep 2004 01:07:42 +0000 |
parents | b23e70bd1215 |
children | 5d8d73c2eebe |
line wrap: on
line diff
--- a/src/blist.c Wed Sep 01 00:48:38 2004 +0000 +++ b/src/blist.c Wed Sep 01 01:07:42 2004 +0000 @@ -290,14 +290,14 @@ return FALSE; } -void gaim_blist_update_buddy_presence(GaimBuddy *buddy, int presence) +void gaim_blist_update_buddy_presence(GaimBuddy *buddy, gboolean online) { GaimBlistUiOps *ops = gaimbuddylist->ui_ops; gboolean did_something = FALSE; g_return_if_fail(buddy != NULL); - if (!GAIM_BUDDY_IS_ONLINE(buddy) && presence) { + if (!GAIM_BUDDY_IS_ONLINE(buddy) && online) { int old_present = buddy->present; buddy->present = GAIM_BUDDY_SIGNING_ON; gaim_signal_emit(gaim_blist_get_handle(), "buddy-signed-on", buddy); @@ -308,7 +308,7 @@ if (((GaimContact*)((GaimBlistNode*)buddy)->parent)->online == 1) ((GaimGroup *)((GaimBlistNode *)buddy)->parent->parent)->online++; } - } else if (GAIM_BUDDY_IS_ONLINE(buddy) && !presence) { + } else if (GAIM_BUDDY_IS_ONLINE(buddy) && !online) { buddy->present = GAIM_BUDDY_SIGNING_OFF; gaim_signal_emit(gaim_blist_get_handle(), "buddy-signed-off", buddy); did_something = TRUE;