From e605e5333fc1c7af33ae83ca87b95264ec304aad Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 16 Apr 2010 11:29:56 -0400 Subject: [PATCH] Fixed in-reply-to links --- TODO | 1 - mytwitter.py | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 79d3556..c6314c6 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,6 @@ This is a list of things that still need doing. It includes short-, medium-, and long-term goals. * Support multiple accounts -* Fix in-reply-to links, and the fact that they prevent a search that matches the pane title * Make all the buttons prettier * Add a graphical options menu * Support some kind of 'conversation' view for in-reply-to chains, instead of the standard single-tweet diff --git a/mytwitter.py b/mytwitter.py index 01ba295..2f9adaf 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -179,7 +179,14 @@ class MyTwitter(): # If it already exists, don't add it, just switch to it for i in range(self.tweet_notebook.get_n_pages()): pane = self.tweet_notebook.get_nth_page(i) - if pane.get_list_name() == name: + # Unless it is a single tweet... ignore those unless + # we are also a single tweet... then, special logic + if pane.get_single_tweet() is not None: + if pane.get_single_tweet() == single_tweet: + self.tweet_notebook.set_current_page(i) + return + + elif pane.get_list_name() == name: self.tweet_notebook.set_current_page(i) return