Yet another improvement for the tooltip

This commit is contained in:
Alexander Cherniuk 2010-03-30 17:03:10 +03:00
parent 07da2caf61
commit f41c8d6527
1 changed files with 3 additions and 5 deletions

View File

@ -586,9 +586,6 @@ class RosterTooltip(NotificationAreaTooltip):
gobject.markup_escape_text(keyID))) gobject.markup_escape_text(keyID)))
if contact.last_activity_time: if contact.last_activity_time:
text_since = _("Idle since %s")
text_for = _("Idle for %s")
last_active = datetime(*contact.last_activity_time[:6]) last_active = datetime(*contact.last_activity_time[:6])
current = datetime.now() current = datetime.now()
@ -600,8 +597,9 @@ class RosterTooltip(NotificationAreaTooltip):
else: else:
formatted = last_active.strftime("%c") formatted = last_active.strftime("%c")
properties.append((text_since % formatted, None)) properties.append((str(), None))
properties.append((text_for % str(diff), None)) properties.append(("Idle since %s" % formatted, None))
properties.append(("Idle for %s" % str(diff), None))
while properties: while properties:
property_ = properties.pop(0) property_ = properties.pop(0)