From 17b74769e5a83cf67a5368bc24f93a8b2244d0bd Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 10 Apr 2010 13:01:31 -0400 Subject: [PATCH] Clear statuses that aren't changed when switching to a different list --- mytwitter.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mytwitter.py b/mytwitter.py index b0c3b24..1023773 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -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')