Browse Source

Better display of unread (still not good, though)

master
Julio Biason 15 years ago
parent
commit
86b7759d9c
  1. 13
      mitterlib/ui/ui_pygtk.py

13
mitterlib/ui/ui_pygtk.py

@ -571,16 +571,19 @@ class Interface(object):
# message) # message)
if not data.read: if not data.read:
message = "<b>" + message + "</b>" read_status = '<big>&#9679;</big>'
else:
read_status = ''
if data.reposted_by: if data.reposted_by:
markup = '<b>%s</b> <small>(%s -- <i>reposted by %s</i>)' \ markup = '<b>%s</b> <small>(%s -- <i>reposted by %s</i>)' \
'</small>:\n%s\n<small>%s</small>' % \ '</small>:%s\n%s\n<small>%s</small>' % \
(data.name, username, data.reposted_by, message, time) (data.name, username, data.reposted_by, read_status,
message, time)
else: else:
markup = '<b>%s</b> <small>(%s)</small>:\n%s\n' \ markup = '<b>%s</b> <small>(%s)</small>:%s\n%s\n' \
'<small>%s</small>' % \ '<small>%s</small>' % \
(data.name, username, message, time) (data.name, username, read_status, message, time)
cell.set_property('markup', markup) cell.set_property('markup', markup)

Loading…
Cancel
Save