changeset 119:66ec3865bd46

[gaim-migrate @ 129] When you have more than 1 group, one group displays below another. When someone from the top group signs out, the people in that group move up, but the groups below don't move up. Now they do. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 15 Apr 2000 21:25:22 +0000
parents 15a09c1715ee
children 991d5f0c6c90
files src/buddy.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Sat Apr 15 17:34:56 2000 +0000
+++ b/src/buddy.c	Sat Apr 15 21:25:22 2000 +0000
@@ -1306,6 +1306,7 @@
 gint log_timeout(char *name)
 {
 	struct buddy *b;
+	struct group *g;
 	
 	b = find_buddy(name);
 
@@ -1314,9 +1315,12 @@
 
         b->log_timer = 0;
 			
-	if (!b->present)
+	if (!b->present) {
 		gtk_widget_hide(b->item);
-	else
+		g = find_group_by_buddy(name);
+		gtk_tree_item_collapse(GTK_TREE_ITEM(g->item));
+		gtk_tree_item_expand(GTK_TREE_ITEM(g->item));
+	} else
 		set_buddy(b);
 	
 	return FALSE;