Mercurial > pidgin.yaz
diff src/buddy.c @ 1496:d33bf6548543
[gaim-migrate @ 1506]
hrm.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 22 Feb 2001 00:42:55 +0000 |
parents | 1d0fc2622b29 |
children | de0b946e86a4 |
line wrap: on
line diff
--- a/src/buddy.c Wed Feb 21 19:22:50 2001 +0000 +++ b/src/buddy.c Thu Feb 22 00:42:55 2001 +0000 @@ -1869,8 +1869,12 @@ gtk_widget_show(bs->idle); /* now we do the tooltip */ - sotime = sec_to_text(t - b->signon + - ((struct gaim_connection *)bs->connlist->data)->correction_time); + if (b->signon) { + char *stime = sec_to_text(t - b->signon + + ((struct gaim_connection *)bs->connlist->data)->correction_time); + sotime = g_strdup_printf(_("Logged in: %s\n"), stime); + g_free(stime); + } if (b->idle) itime = sec_to_text(t - b->idle); @@ -1896,14 +1900,16 @@ caps[0] = '\0'; g_snprintf(infotip, sizeof infotip, _("Alias: %s \nScreen Name: %s\n" - "Logged in: %s\n%s%s%s%s%s"), - b->show, b->name, sotime, warn, + "%s%s%s%s%s%s"), + b->show, b->name, + (b->signon ? sotime : ""), warn, (b->idle ? _("Idle: ") : ""), itime, (b->idle ? "\n" : ""), caps); gtk_tooltips_set_tip(tips, GTK_WIDGET(bs->item), infotip, ""); - g_free(sotime); + if (b->signon) + g_free(sotime); g_free(itime); }