comparison src/buddy_chat.c @ 1390:a437240b9771

[gaim-migrate @ 1400] er, this should work better committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 05 Jan 2001 21:14:35 +0000
parents 1a1cbe538c12
children f6b0cf1f4c3b
comparison
equal deleted inserted replaced
1389:1a1cbe538c12 1390:a437240b9771
461 461
462 gtk_object_set_user_data(GTK_OBJECT(list_item), name); 462 gtk_object_set_user_data(GTK_OBJECT(list_item), name);
463 gtk_list_insert_items(GTK_LIST(b->list), g_list_append(NULL, list_item), pos); 463 gtk_list_insert_items(GTK_LIST(b->list), g_list_append(NULL, list_item), pos);
464 gtk_widget_show(list_item); 464 gtk_widget_show(list_item);
465 465
466 g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_slist_length(b->in_room) == 1 ? "person" : "people"); 466 g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_list_length(b->in_room) == 1 ? "person" : "people");
467 gtk_label_set_text(GTK_LABEL(b->count), tmp); 467 gtk_label_set_text(GTK_LABEL(b->count), tmp);
468 468
469 if (b->makesound && (sound_options & OPT_SOUND_CHAT_JOIN)) 469 if (b->makesound && (sound_options & OPT_SOUND_CHAT_JOIN))
470 play_sound(CHAT_JOIN); 470 play_sound(CHAT_JOIN);
471 471
503 break; 503 break;
504 } 504 }
505 names = names->next; 505 names = names->next;
506 } 506 }
507 507
508 g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_slist_length(b->in_room) == 1 ? "person" : "people"); 508 g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_list_length(b->in_room) == 1 ? "person" : "people");
509 gtk_label_set_text(GTK_LABEL(b->count), tmp); 509 gtk_label_set_text(GTK_LABEL(b->count), tmp);
510 510
511 if (b->makesound && (sound_options & OPT_SOUND_CHAT_PART)) 511 if (b->makesound && (sound_options & OPT_SOUND_CHAT_PART))
512 play_sound(CHAT_LEAVE); 512 play_sound(CHAT_LEAVE);
513 513