changeset 945:f8de52dbd0cb

[gaim-migrate @ 955] hopefully this will fix some issues i've been having with disappearing rows in the buddy list. if this fucks things up for someone, let me know. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 04 Oct 2000 10:26:13 +0000
parents 2f64424bf319
children acd4d81f2afc
files src/buddy.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Tue Oct 03 20:22:35 2000 +0000
+++ b/src/buddy.c	Wed Oct 04 10:26:13 2000 +0000
@@ -210,7 +210,8 @@
                         if (b->present || !GTK_WIDGET_VISIBLE(b->item))
 				set_buddy(b);
 
-			if (b->present) count++;
+			if (b->present || GTK_WIDGET_VISIBLE(b->item))
+				count++;
 
                         mem = mem->next;
                 }
@@ -500,7 +501,7 @@
 	mem = delg->members;
 	while (mem && !count) {
 		b = (struct buddy *)mem->data;
-		if (b->present) count++;
+		if (b->present || GTK_WIDGET_VISIBLE(b->item)) count++;
 		mem = mem->next;
 	}
 	if (!count && (display_options & OPT_DISP_NO_MT_GRP))
@@ -745,7 +746,7 @@
 			int count = 0;
 			while (mem && !count) {
 				bt = (struct buddy *)mem->data;
-				if (bt->present) count++;
+				if (bt->present || GTK_WIDGET_VISIBLE(b->item)) count++;
 				mem = mem->next;
 			}
 			if (!count && (display_options & OPT_DISP_NO_MT_GRP))
@@ -1344,7 +1345,7 @@
 		mem = g->members;
 		while (mem) {
 			b = (struct buddy *)mem->data;
-                        if (b->present) {
+                        if (b->present || GTK_WIDGET_VISIBLE(b->item)) {
 				count++;
 				break;
 			}