Mercurial > pidgin
diff src/buddy.c @ 58:60fa62507184
[gaim-migrate @ 68]
I really fixed the twice-gone bug this time, I swear.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sun, 26 Mar 2000 11:37:20 +0000 |
| parents | aa738bb8d8d7 |
| children | af088e5b2e30 |
line wrap: on
line diff
--- 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(); }
