changeset 8203:72311ba4ad8b

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 03 Feb 2004 06:55:59 +0000
parents f9a086012545
children b8e7d4efdc10
files src/gtkblist.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;