|
|
@ -683,13 +683,8 @@ class Interface(object): |
|
|
|
retrieved.""" |
|
|
|
retrieved.""" |
|
|
|
_log.debug('%d new tweets', len(results)) |
|
|
|
_log.debug('%d new tweets', len(results)) |
|
|
|
|
|
|
|
|
|
|
|
(grid, counter) = self._grids[0] |
|
|
|
grid = self._main_tabs.get_nth_page(0) |
|
|
|
store = grid.get_model() |
|
|
|
grid.update(results) |
|
|
|
self._fill_store(store, results) |
|
|
|
|
|
|
|
grid.queue_draw() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._new_message_count += len(results) |
|
|
|
|
|
|
|
self._message_count_updated() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# now get replies |
|
|
|
# now get replies |
|
|
|
self._update_statusbar(_('Retrieving replies...')) |
|
|
|
self._update_statusbar(_('Retrieving replies...')) |
|
|
@ -720,13 +715,8 @@ class Interface(object): |
|
|
|
"""Called after we retrieve the replies.""" |
|
|
|
"""Called after we retrieve the replies.""" |
|
|
|
_log.debug("%d new replies", len(results)) |
|
|
|
_log.debug("%d new replies", len(results)) |
|
|
|
|
|
|
|
|
|
|
|
(grid, counter) = self._grids[1] |
|
|
|
grid = self._main_tabs.get_nth_page(1) |
|
|
|
store = grid.get_model() |
|
|
|
grid.update(results) |
|
|
|
self._fill_store(store, results) |
|
|
|
|
|
|
|
grid.queue_draw() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._new_replies_count += len(results) |
|
|
|
|
|
|
|
self._message_count_updated() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# once our update went fine, we can queue the next one. This avoids |
|
|
|
# once our update went fine, we can queue the next one. This avoids |
|
|
|
# any problems if case there is an exception. |
|
|
|
# any problems if case there is an exception. |
|
|
|