Got all the buttons, signals, etc linked up for follow and at, I think...

This commit is contained in:
Anna 2010-05-20 00:16:10 -04:00
parent 22067b4ad2
commit 897f2273ce
2 changed files with 19 additions and 2 deletions

View file

@ -433,6 +433,16 @@ class MyTwitter():
self.add_to_notebook('@' + user_name)
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.sig_proxy.connect('friendship-changed', self.on_friendship_changed)
thread.sig_proxy.connect('friendship-changed', widget.user_box.on_friendship_changed)
thread.start()
def global_key_press_handler(self, widget, event):
keyname = gtk.gdk.keyval_name(event.keyval)
if keyname == 'w' and event.state & gtk.gdk.CONTROL_MASK: