# HG changeset patch # User Eric Warmenhoven # Date 954070640 0 # Node ID 60fa625071845f4c6dfee97a00b875df071c3648 # Parent c8decb7588636ffd3d0f449717653e10c24cae7a [gaim-migrate @ 68] I really fixed the twice-gone bug this time, I swear. committer: Tailor Script diff -r c8decb758863 -r 60fa62507184 src/buddy.c --- a/src/buddy.c Sun Mar 26 10:46:42 2000 +0000 +++ b/src/buddy.c Sun Mar 26 11:37:20 2000 +0000 @@ -1383,7 +1383,7 @@ gtk_widget_show(b->item); gtk_widget_show(b->label); - b->log_timer = gtk_timeout_add(7500, (GtkFunction) log_timeout, b->name); + b->log_timer = gtk_timeout_add(10000, (GtkFunction) log_timeout, b->name); update_num_groups(); update_show_idlepix(); setup_buddy_chats(); @@ -1426,7 +1426,9 @@ } else { - if (GTK_WIDGET_VISIBLE(b->item)) { + static struct buddy *last = NULL; + if (GTK_WIDGET_VISIBLE(b->item) && last != b) { + last = b; play_sound(BUDDY_LEAVE); pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, NULL, (gchar **)logout_icon_xpm); @@ -1449,7 +1451,7 @@ } } - b->log_timer = gtk_timeout_add(7500, (GtkFunction)log_timeout, b->name); + b->log_timer = gtk_timeout_add(10000, (GtkFunction)log_timeout, b->name); update_num_groups(); update_show_idlepix(); }