# HG changeset patch # User Mark Doliner # Date 1075791359 0 # Node ID 72311ba4ad8b22e97fa36be5436ed9f0573c76fa # Parent f9a0860125456ec0787cdf7cc069b18157392bcc [gaim-migrate @ 8926] From Alex Smith (madalex): "In the Buddy List if you turn on 'Show Offline Buddies' then empty groups are shown regardless of the setting of 'Show Empty Groups'. This patch for gtkblist.c should fix this. It is a very straightforward change." committer: Tailor Script diff -r f9a086012545 -r 72311ba4ad8b src/gtkblist.c --- a/src/gtkblist.c Tue Feb 03 06:46:04 2004 +0000 +++ b/src/gtkblist.c Tue Feb 03 06:55:59 2004 +0000 @@ -3117,14 +3117,17 @@ static void gaim_gtk_blist_update_group(GaimBuddyList *list, GaimBlistNode *node) { GaimGroup *group; + int count; g_return_if_fail(GAIM_BLIST_NODE_IS_GROUP(node)); group = (GaimGroup*)node; - if(gaim_prefs_get_bool("/gaim/gtk/blist/show_empty_groups") || - gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies") || - gaim_blist_get_group_online_count(group) > 0) { + if(gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies")) + count = gaim_blist_get_group_size(group, FALSE); + else + count = gaim_blist_get_group_online_count(group); + if(gaim_prefs_get_bool("/gaim/gtk/blist/show_empty_groups") || count > 0) { char *mark, *esc; GtkTreeIter iter;