diff src/buddy.c @ 59:af088e5b2e30

[gaim-migrate @ 69] Okay, I finally backtraced the problem and fixed it at its root. No more double-logoffs, period. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 26 Mar 2000 13:01:18 +0000
parents 60fa62507184
children dead1eb6d654
line wrap: on
line diff
--- a/src/buddy.c	Sun Mar 26 11:37:20 2000 +0000
+++ b/src/buddy.c	Sun Mar 26 13:01:18 2000 +0000
@@ -162,7 +162,8 @@
                 while(mem) {
 			b = (struct buddy *)mem->data;
 
-                        set_buddy(b);
+                        if (b->present || !GTK_WIDGET_VISIBLE(b->item))
+				set_buddy(b);
                         
                         mem = mem->next;
                 }
@@ -1426,9 +1427,7 @@
 
 
 	} else {
-		static struct buddy *last = NULL;
-		if (GTK_WIDGET_VISIBLE(b->item) && last != b) {
-			last = b;
+		if (GTK_WIDGET_VISIBLE(b->item)) {
 			play_sound(BUDDY_LEAVE);
 			pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm,
 				NULL, (gchar **)logout_icon_xpm);