# HG changeset patch # User Mark Doliner # Date 1057299033 0 # Node ID 4c16227f7cd9c25b211d00460fa6c72149111d8a # Parent b8abf266dd3b61f446bd0fb94ca6872f1c180945 [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 diff -r b8abf266dd3b -r 4c16227f7cd9 src/blist.c --- 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); + } + } } /*****************************************************************************