Mercurial > pidgin
comparison src/buddy.c @ 514:44123888a941
[gaim-migrate @ 524]
whoops. formatting. i forgot.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 21 Jul 2000 01:21:38 +0000 |
parents | eaddaa0dbbcb |
children | b33ed0a7f49b |
comparison
equal
deleted
inserted
replaced
513:eaddaa0dbbcb | 514:44123888a941 |
---|---|
1451 u_short bit = 1; | 1451 u_short bit = 1; |
1452 while (bit <= AIM_CAPS_SENDFILE) { | 1452 while (bit <= AIM_CAPS_SENDFILE) { |
1453 if (bit & caps) { | 1453 if (bit & caps) { |
1454 switch (bit) { | 1454 switch (bit) { |
1455 case AIM_CAPS_BUDDYICON: | 1455 case AIM_CAPS_BUDDYICON: |
1456 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sBuddy Icon"), count ? "," : ""); | 1456 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sBuddy Icon"), count ? ", " : ""); |
1457 break; | 1457 break; |
1458 case AIM_CAPS_VOICE: | 1458 case AIM_CAPS_VOICE: |
1459 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sVoice"), count ? "," : ""); | 1459 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sVoice"), count ? ", " : ""); |
1460 break; | 1460 break; |
1461 case AIM_CAPS_IMIMAGE: | 1461 case AIM_CAPS_IMIMAGE: |
1462 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sIM Image"), count ? "," : ""); | 1462 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sIM Image"), count ? ", " : ""); |
1463 break; | 1463 break; |
1464 case AIM_CAPS_CHAT: | 1464 case AIM_CAPS_CHAT: |
1465 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sChat"), count ? "," : ""); | 1465 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sChat"), count ? ", " : ""); |
1466 break; | 1466 break; |
1467 case AIM_CAPS_GETFILE: | 1467 case AIM_CAPS_GETFILE: |
1468 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sGet File"), count ? "," : ""); | 1468 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sGet File"), count ? ", " : ""); |
1469 break; | 1469 break; |
1470 case AIM_CAPS_SENDFILE: | 1470 case AIM_CAPS_SENDFILE: |
1471 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sSend File"), count ? "," : ""); | 1471 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sSend File"), count ? ", " : ""); |
1472 break; | 1472 break; |
1473 } | 1473 } |
1474 count++; | 1474 count++; |
1475 } | 1475 } |
1476 bit <<= 1; | 1476 bit <<= 1; |
1531 if (b->caps) { | 1531 if (b->caps) { |
1532 g_snprintf(caps, sizeof(caps), _("Capabilities: %s\n"), caps_string(b->caps)); | 1532 g_snprintf(caps, sizeof(caps), _("Capabilities: %s\n"), caps_string(b->caps)); |
1533 } else | 1533 } else |
1534 caps[0] = '\0'; | 1534 caps[0] = '\0'; |
1535 | 1535 |
1536 i = g_snprintf(infotip, sizeof(infotip), _("Name: %s \nLogged in: %s\n%s%s%s\n%s"), b->name, sotime, warn, ((b->idle) ? _("Idle: ") : ""), itime, caps); | 1536 i = g_snprintf(infotip, sizeof(infotip), _("Name: %s \nLogged in: %s\n%s%s%s%s%s"), b->name, sotime, warn, ((b->idle) ? _("Idle: ") : ""), itime, ((b->idle) ? "\n" : ""), caps); |
1537 | 1537 |
1538 gtk_tooltips_set_tip(tips, GTK_WIDGET(b->item), infotip, ""); | 1538 gtk_tooltips_set_tip(tips, GTK_WIDGET(b->item), infotip, ""); |
1539 | 1539 |
1540 g_free(sotime); | 1540 g_free(sotime); |
1541 g_free(itime); | 1541 g_free(itime); |