diff src/buddy.c @ 902:bd5f4997f063

[gaim-migrate @ 912] "We're not gonna take it, no!, we ain't gonna take it, we're not gonna take it, anymore!!!!!!!!!!!!!!!!!" committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 14 Sep 2000 01:00:28 +0000
parents 36dcec9595ee
children 16492f41410d
line wrap: on
line diff
--- a/src/buddy.c	Thu Sep 14 00:37:51 2000 +0000
+++ b/src/buddy.c	Thu Sep 14 01:00:28 2000 +0000
@@ -198,18 +198,24 @@
 	GList *mem;
         struct buddy *b;
 	struct group *g;
+	int count;
 
         while(grp) {
 		g = (struct group *)grp->data;
                 mem = g->members;
+		count = 0;
                 while(mem) {
 			b = (struct buddy *)mem->data;
 
                         if (b->present || !GTK_WIDGET_VISIBLE(b->item))
 				set_buddy(b);
+
+			if (b->present) count++;
                         
                         mem = mem->next;
                 }
+		if (!count && (display_options & OPT_DISP_NO_MT_GRP))
+			gtk_widget_hide(g->item);
                 grp = grp->next;
         }
 
@@ -1431,6 +1437,8 @@
 			}
 
 			
+			{ struct group *g = find_group_by_buddy(b->name);
+			  gtk_widget_show(g->item); }
 			gtk_widget_show(b->item);
 			gtk_widget_show(b->label);
                         b->log_timer = gtk_timeout_add(10000, (GtkFunction) log_timeout, b->name);