From f85189712b3a742053f66c45cf7bec3504eccdc3 Mon Sep 17 00:00:00 2001 From: Anna <annabuches@gmail.com> Date: Mon, 17 May 2010 22:32:36 -0400 Subject: [PATCH] Fixed bug that presented text from the wrong tweets sometimes --- TODO | 1 + twitterwidgets.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/TODO b/TODO index 6445f07..b552800 100644 --- a/TODO +++ b/TODO @@ -15,3 +15,4 @@ bugs: * Direct Messages have no names, only screen names (may not be fixable without considerable tweaks to python-twitter) +* New posts sometimes inherit 'in reply to' text of old posts diff --git a/twitterwidgets.py b/twitterwidgets.py index 9878087..7412001 100644 --- a/twitterwidgets.py +++ b/twitterwidgets.py @@ -313,6 +313,9 @@ class TweetBox(gtk.HBox): def set_status(self, status, read=True): + # To avoid leftover data when reusing + self.clear_status() + # Set avatar try: with AvCache().lock: @@ -361,6 +364,8 @@ class TweetBox(gtk.HBox): self.screen_name = None self.id = None self.set_read(True) + self.reply_to_button.set_label('') + self.avatar.hide() def set_read(self, read=True):