comparison src/buddy.c @ 120:991d5f0c6c90

[gaim-migrate @ 130] Whoops, shouldn't expand if wasn't expanded. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 15 Apr 2000 23:29:33 +0000
parents 66ec3865bd46
children 3571b593f423
comparison
equal deleted inserted replaced
119:66ec3865bd46 120:991d5f0c6c90
1316 b->log_timer = 0; 1316 b->log_timer = 0;
1317 1317
1318 if (!b->present) { 1318 if (!b->present) {
1319 gtk_widget_hide(b->item); 1319 gtk_widget_hide(b->item);
1320 g = find_group_by_buddy(name); 1320 g = find_group_by_buddy(name);
1321 gtk_tree_item_collapse(GTK_TREE_ITEM(g->item)); 1321 if (GTK_TREE_ITEM(g->item)->expanded) {
1322 gtk_tree_item_expand(GTK_TREE_ITEM(g->item)); 1322 gtk_tree_item_collapse(GTK_TREE_ITEM(g->item));
1323 gtk_tree_item_expand(GTK_TREE_ITEM(g->item));
1324 }
1323 } else 1325 } else
1324 set_buddy(b); 1326 set_buddy(b);
1325 1327
1326 return FALSE; 1328 return FALSE;
1327 } 1329 }