From 5b85ca65f4ba1ba3e5c7995b8e490f1bbc663b9c Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 22 Apr 2010 16:22:09 -0400 Subject: [PATCH] Threading makes some ugliness happen before the tweets are ready... this fixes that --- twitterwidgets.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/twitterwidgets.py b/twitterwidgets.py index 2077dd8..b077254 100644 --- a/twitterwidgets.py +++ b/twitterwidgets.py @@ -55,6 +55,7 @@ class TweetPane(gtk.ScrolledWindow): self.tweets[i].connect('retweet', self.on_retweet) self.tweets[i].connect('in-reply-to', self.on_tweet_reply_to) self.tweets[i].connect('show-user', self.on_show_user) + self.tweets[i].hide() viewport.add(tweet_box) @@ -68,6 +69,9 @@ class TweetPane(gtk.ScrolledWindow): self.set_policy(gtk.POLICY_NEVER, gtk.POLICY_ALWAYS) self.show_all() + for tweet in self.tweets: + tweet.hide() + def update_window(self, statuses): if self.updated_once is False: @@ -90,8 +94,10 @@ class TweetPane(gtk.ScrolledWindow): self.num_new_tweets += 1 read = False self.tweets[i].set_status(statuses[i], read) + self.tweets[i].show() else: self.tweets[i].clear_status() + self.tweets[i].hide() try: self.latest_tweet = statuses[0].id