Browse Source

Show the number of new messages for the user

master
Julio Biason 15 years ago
parent
commit
37aef35616
  1. 6
      mitterlib/ui/ui_pygtk.py

6
mitterlib/ui/ui_pygtk.py

@ -558,7 +558,6 @@ class Interface(object):
# unescape escaped entities that pango is not okay with # unescape escaped entities that pango is not okay with
message = re.sub(r'&', r'&', message) message = re.sub(r'&', r'&', message)
#_log.debug('Rendering message: %s', message)
# highlight URLs # highlight URLs
mask = r'<span foreground="%s">\1</span>' % ( mask = r'<span foreground="%s">\1</span>' % (
@ -702,6 +701,7 @@ class Interface(object):
self._options[self.NAMESPACE]['width'] = width self._options[self.NAMESPACE]['width'] = width
self._options[self.NAMESPACE]['height'] = height self._options[self.NAMESPACE]['height'] = height
# TODO: Kill any threads running.
gtk.main_quit() gtk.main_quit()
return return
@ -812,8 +812,8 @@ class Interface(object):
retrieved.""" retrieved."""
_log.debug('%d new tweets', len(results)) _log.debug('%d new tweets', len(results))
interval = self._options[self.NAMESPACE]['refresh_interval'] interval = self._options[self.NAMESPACE]['refresh_interval']
self._update_statusbar('Messages retrieved. Next update in ' \ self._update_statusbar('%d new messages retrieved. Next update in ' \
'%d minutes.' % interval) '%d minutes.' % (len(results), interval))
store = self._grid.get_model() store = self._grid.get_model()
for message in results: for message in results:

Loading…
Cancel
Save