comparison 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
comparison
equal deleted inserted replaced
57:c8decb758863 58:60fa62507184
1381 } 1381 }
1382 1382
1383 1383
1384 gtk_widget_show(b->item); 1384 gtk_widget_show(b->item);
1385 gtk_widget_show(b->label); 1385 gtk_widget_show(b->label);
1386 b->log_timer = gtk_timeout_add(7500, (GtkFunction) log_timeout, b->name); 1386 b->log_timer = gtk_timeout_add(10000, (GtkFunction) log_timeout, b->name);
1387 update_num_groups(); 1387 update_num_groups();
1388 update_show_idlepix(); 1388 update_show_idlepix();
1389 setup_buddy_chats(); 1389 setup_buddy_chats();
1390 return; 1390 return;
1391 } 1391 }
1424 } 1424 }
1425 1425
1426 1426
1427 1427
1428 } else { 1428 } else {
1429 if (GTK_WIDGET_VISIBLE(b->item)) { 1429 static struct buddy *last = NULL;
1430 if (GTK_WIDGET_VISIBLE(b->item) && last != b) {
1431 last = b;
1430 play_sound(BUDDY_LEAVE); 1432 play_sound(BUDDY_LEAVE);
1431 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, 1433 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm,
1432 NULL, (gchar **)logout_icon_xpm); 1434 NULL, (gchar **)logout_icon_xpm);
1433 gtk_widget_hide(b->pix); 1435 gtk_widget_hide(b->pix);
1434 gtk_pixmap_set(GTK_PIXMAP(b->pix), pm, bm); 1436 gtk_pixmap_set(GTK_PIXMAP(b->pix), pm, bm);
1447 1449
1448 write_to_conv(c, tmp, WFLAG_SYSTEM); 1450 write_to_conv(c, tmp, WFLAG_SYSTEM);
1449 1451
1450 } 1452 }
1451 } 1453 }
1452 b->log_timer = gtk_timeout_add(7500, (GtkFunction)log_timeout, b->name); 1454 b->log_timer = gtk_timeout_add(10000, (GtkFunction)log_timeout, b->name);
1453 update_num_groups(); 1455 update_num_groups();
1454 update_show_idlepix(); 1456 update_show_idlepix();
1455 } 1457 }
1456 } 1458 }
1457 setup_buddy_chats(); 1459 setup_buddy_chats();