comparison src/buddy.c @ 4167:7002b6f16bdf

[gaim-migrate @ 4396] (00:14:20) Robot101: if anyone with CVS would like to choose between the docklet eating messages if you ask it to queue them, or an occasional crash when returning from away with queued messages, I have a patch to revert ari's 'fix' at http://people.debian.org/~robot101/silly-ari.diff (00:15:05) Robot101: Sean and I agreed that keeping the queued messages in a GSList is better, so if ari could seperate the gtk2ification and the fixing of the crash, without breaking the generic queueing stuff, that'd be peachy (00:15:22) Robot101: in the meantime, the docklet saying it has queued messages, and not letting you read them, is pretty damn obnoxious. (00:16:30) LSchiere: i'll do it committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 02 Jan 2003 05:18:16 +0000
parents d3c8d2b40494
children ebfb80bbe1ed
comparison
equal deleted inserted replaced
4166:481c51159627 4167:7002b6f16bdf
2396 struct conversation *c = find_conversation(b->name); 2396 struct conversation *c = find_conversation(b->name);
2397 if (c) { 2397 if (c) {
2398 char tmp[1024]; 2398 char tmp[1024];
2399 g_snprintf(tmp, sizeof(tmp), _("%s logged in."), b->show); 2399 g_snprintf(tmp, sizeof(tmp), _("%s logged in."), b->show);
2400 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); 2400 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1);
2401 } else if (awayqueue && find_queue_total_by_name(b->name)) { 2401 } else if (clistqueue && find_queue_total_by_name(b->name)) {
2402 struct queued_message *qm = g_new0(struct queued_message, 1); 2402 struct queued_message *qm = g_new0(struct queued_message, 1);
2403 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); 2403 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name);
2404 qm->message = g_strdup_printf(_("%s logged in."), b->show); 2404 qm->message = g_strdup_printf(_("%s logged in."), b->show);
2405 qm->gc = gc; 2405 qm->gc = gc;
2406 qm->tm = time(NULL); 2406 qm->tm = time(NULL);
2455 struct conversation *c = find_conversation(b->name); 2455 struct conversation *c = find_conversation(b->name);
2456 if (c) { 2456 if (c) {
2457 char tmp[1024]; 2457 char tmp[1024];
2458 g_snprintf(tmp, sizeof(tmp), _("%s logged out."), b->show); 2458 g_snprintf(tmp, sizeof(tmp), _("%s logged out."), b->show);
2459 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); 2459 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1);
2460 } else if (awayqueue && find_queue_total_by_name(b->name)) { 2460 } else if (clistqueue && find_queue_total_by_name(b->name)) {
2461 struct queued_message *qm = g_new0(struct queued_message, 1); 2461 struct queued_message *qm = g_new0(struct queued_message, 1);
2462 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); 2462 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name);
2463 qm->message = g_strdup_printf(_("%s logged out."), b->show); 2463 qm->message = g_strdup_printf(_("%s logged out."), b->show);
2464 qm->gc = gc; 2464 qm->gc = gc;
2465 qm->tm = time(NULL); 2465 qm->tm = time(NULL);
2607 return; 2607 return;
2608 } 2608 }
2609 2609
2610 blist = gtk_window_new(GTK_WINDOW_TOPLEVEL); 2610 blist = gtk_window_new(GTK_WINDOW_TOPLEVEL);
2611 2611
2612 gtk_window_set_gravity(GTK_WINDOW(blist), GDK_GRAVITY_STATIC); 2612 gtk_window_set_gravity(GTK_WINDOW(blist), GDK_GRAVITY_NORTH_WEST);
2613 gtk_window_set_policy(GTK_WINDOW(blist), TRUE, TRUE, TRUE); 2613 gtk_window_set_policy(GTK_WINDOW(blist), TRUE, TRUE, TRUE);
2614 gtk_window_set_title(GTK_WINDOW(blist), _("Gaim - Buddy List")); 2614 gtk_window_set_title(GTK_WINDOW(blist), _("Gaim - Buddy List"));
2615 gtk_window_set_role(GTK_WINDOW(blist), "buddy_list"); 2615 gtk_window_set_role(GTK_WINDOW(blist), "buddy_list");
2616 2616
2617 gtk_widget_realize(blist); 2617 gtk_widget_realize(blist);