comparison src/protocols/yahoo/yahoo.c @ 8591:f96795b786d2

[gaim-migrate @ 9342] Alright, I had to get my tooltip construction deuglification on. I removed the \n between the core's tooltip and the prpl's tooltip. prpl's should PREpend a \n to each line they add to the tooltip instead of APpending. This way you don't have to worry about removing trailing newline... it makes a lot more sense to me. I also changed oscar and trepia to use g_strings instead of g_strdup_printf and g_strconcat. G strings are sexy. And I apologize to the translators for changing some strings (separated some html and some text). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 06 Apr 2004 02:28:01 +0000
parents 72a0759a37a2
children aa815d1a996d
comparison
equal deleted inserted replaced
8590:de3d7eb3fc86 8591:f96795b786d2
2381 struct yahoo_friend *f; 2381 struct yahoo_friend *f;
2382 char *escaped, *status, *ret; 2382 char *escaped, *status, *ret;
2383 2383
2384 f = g_hash_table_lookup(yd->friends, b->name); 2384 f = g_hash_table_lookup(yd->friends, b->name);
2385 if (!f) 2385 if (!f)
2386 status = g_strdup(_("Not on server list")); 2386 status = g_strdup_printf("\n%s", _("Not on server list"));
2387 else 2387 else
2388 switch (f->status) { 2388 switch (f->status) {
2389 case YAHOO_STATUS_IDLE: 2389 case YAHOO_STATUS_IDLE:
2390 if (f->idle == -1) { 2390 if (f->idle == -1) {
2391 status = g_strdup(yahoo_get_status_string(f->status)); 2391 status = g_strdup(yahoo_get_status_string(f->status));
2401 status = g_strdup(yahoo_get_status_string(f->status)); 2401 status = g_strdup(yahoo_get_status_string(f->status));
2402 break; 2402 break;
2403 } 2403 }
2404 2404
2405 escaped = g_markup_escape_text(status, strlen(status)); 2405 escaped = g_markup_escape_text(status, strlen(status));
2406 ret = g_strdup_printf(_("<b>Status:</b> %s"), escaped); 2406 ret = g_strdup_printf(_("\n<b>%s:</b> %s"), _("Status"), escaped);
2407 g_free(status); 2407 g_free(status);
2408 g_free(escaped); 2408 g_free(escaped);
2409 2409
2410 return ret; 2410 return ret;
2411 } 2411 }