Mercurial > pidgin.yaz
changeset 6012:4c16227f7cd9
[gaim-migrate @ 6460]
"Show server aliases if no local alias set" now actually does take
effect immediately. Thanks to Nathan for guiding me as to the correct
way to do that.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 04 Jul 2003 06:10:33 +0000 |
parents | b8abf266dd3b |
children | 9ab75d4fafac |
files | src/blist.c |
diffstat | 1 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/blist.c Fri Jul 04 05:38:55 2003 +0000 +++ b/src/blist.c Fri Jul 04 06:10:33 2003 +0000 @@ -72,8 +72,21 @@ static void blist_pref_cb(const char *name, GaimPrefType typ, gpointer value, gpointer data) { - /* XXX - We shouldn't call gtk functions directly */ - /* gaim_gtk_blist_refresh(gaimbuddylist); */ + struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; + GaimBlistNode *group, *buddy; + + if (!ops) + return; + + for(group = gaimbuddylist->root; group; group = group->next) { + if(!GAIM_BLIST_NODE_IS_GROUP(group)) + continue; + for(buddy = group->child; buddy; buddy = buddy->next) { + if(!GAIM_BLIST_NODE_IS_BUDDY(buddy)) + continue; + ops->update(gaimbuddylist, buddy); + } + } } /*****************************************************************************