prevent TB

This commit is contained in:
Dimitur Kirov 2006-06-05 21:02:19 +00:00
parent 9ed43cf6d1
commit d3338ad9c4
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ class ConversationTextview:
def scroll_to_end_iter(self):
buffer = self.tv.get_buffer()
end_iter = buffer.get_end_iter()
if not end_iter:
return False
self.tv.scroll_to_iter(end_iter, 0, False, 1, 1)
return False # when called in an idle_add, just do it once