Removed useless code paths, made the follow button work correctly

This commit is contained in:
Anna 2010-05-20 00:21:21 -04:00
parent 897f2273ce
commit 46e63c7c3d
3 changed files with 6 additions and 12 deletions

View file

@ -436,9 +436,8 @@ class MyTwitter():
def on_follow_button_clicked(self, widget, follow):
user_name = re.sub('^user: ', '', widget.get_list_name())
thread = apithreads.ChangeFriendship(self.api, current_pane, user_name, follow)
thread = apithreads.ChangeFriendship(self.api, widget, user_name, follow)
thread.sig_proxy.connect('friendship-changed', self.on_friendship_changed)
thread.sig_proxy.connect('friendship-changed', widget.user_box.on_friendship_changed)
thread.start()