Eliminated dupe searches, and made Home and @user work from the View menu... I seem to have broken 'in reply to' links though

This commit is contained in:
Anna 2010-04-15 22:43:48 -04:00
parent 522edc30cb
commit 990b3f81d2

View File

@ -156,6 +156,9 @@ class MyTwitter():
def on_view_selected(self, event, name): def on_view_selected(self, event, name):
if name == 'Home' or name == '@' + self.username:
full_name = name
else:
full_name = 'list: ' + name full_name = 'list: ' + name
# If it already exists, don't add it, just switch to it # If it already exists, don't add it, just switch to it
@ -183,6 +186,11 @@ class MyTwitter():
def add_to_notebook(self, name, single_tweet=None): def add_to_notebook(self, name, single_tweet=None):
# If we already have a pane by this name, bail
for i in range(self.tweet_notebook.get_n_pages()):
if self.tweet_notebook.get_nth_page(i).get_list_name() == name:
return
is_user = False is_user = False
following = False following = False
if re.match('user:', name): if re.match('user:', name):