escape now closes ft window

This commit is contained in:
Nikos Kouremenos 2005-08-15 12:45:19 +00:00
parent 8298cb456d
commit 0f41cf1fc3
2 changed files with 7 additions and 1 deletions

View File

@ -719,7 +719,12 @@ _('Connection with peer cannot be established.'))
def on_pause_menuitem_activate(self, widget):
self.on_pause_restore_button_clicked(widget)
# TODO change the stock
#FIXME: change the stock
def on_remove_menuitem_activate(self, widget):
self.on_remove_button_clicked(widget)
def on_file_transfers_window_key_press_event(self, widget, event):
if event.keyval == gtk.keysyms.Escape: # ESCAPE
self.window.hide()

View File

@ -17508,6 +17508,7 @@ Maybe I'll refactor later</property>
<atkproperty name="AtkObject::accessible_description" translatable="yes">Shows a list of file transfers between you and other</atkproperty>
</accessibility>
<signal name="delete_event" handler="on_file_transfers_dialog_delete_event" last_modification_time="Wed, 31 Aug 2005 22:17:01 GMT"/>
<signal name="key_press_event" handler="on_file_transfers_window_key_press_event" last_modification_time="Mon, 15 Aug 2005 12:42:20 GMT"/>
<child>
<widget class="GtkVBox" id="vbox1">