Clear statuses that aren't changed when switching to a different list

This commit is contained in:
Anna 2010-04-10 13:01:31 -04:00
parent 5fbfb01c85
commit 17b74769e5

View File

@ -80,6 +80,8 @@ class MyTwitter():
for i in range(0, self.num_entries):
if i < len(statuses):
self.tweets[i].set_status(statuses[i])
else:
self.tweets[i].clear_status()
def update_window_callback(self, widget):
@ -213,6 +215,13 @@ class TweetBox(gtk.VBox):
self.text.set_markup(new_text)
def clear_status(self):
self.header.set_markup('')
self.text.set_markup('')
self.screen_name = None
self.id = None
def on_reply_clicked(self, widget):
self.emit('reply')