Browse Source

Something weird with the display of messages. Some draw different stuff on mouse over.

master
Julio Biason 16 years ago
parent
commit
710a7806d9
  1. 5
      mitterlib/ui/ui_pygtk.py

5
mitterlib/ui/ui_pygtk.py

@ -253,7 +253,7 @@ class Interface(object):
"""Add the displaying grid.""" """Add the displaying grid."""
# Store NetworkData objects only # Store NetworkData objects only
grid_store = gtk.ListStore(object) grid_store = gtk.ListStore(object)
grid_store.set_sort_column_id(0, gtk.SORT_DESCENDING) grid_store.set_sort_column_id(0, gtk.SORT_ASCENDING)
grid_store.set_default_sort_func(self._order_datetime) grid_store.set_default_sort_func(self._order_datetime)
self._grid = gtk.TreeView(grid_store) self._grid = gtk.TreeView(grid_store)
@ -493,6 +493,8 @@ class Interface(object):
message = data.message message = data.message
username = data.username username = data.username
_log.debug('Rendering: %s-%s', username, message)
time = timesince.timesince(data.message_time) time = timesince.timesince(data.message_time)
# unescape escaped entities that pango is okay with # unescape escaped entities that pango is okay with
@ -621,6 +623,7 @@ class Interface(object):
_log.debug('Data: %s', str(message)) _log.debug('Data: %s', str(message))
store.prepend([message]) store.prepend([message])
store.sort_column_changed() store.sort_column_changed()
self._grid.queue_draw()
return return
def _exception_get_messages(self, widget, exception): def _exception_get_messages(self, widget, exception):

Loading…
Cancel
Save