diff --git a/src/dialogs.py b/src/dialogs.py index 2008d3416..6ec9e8a1f 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1537,12 +1537,13 @@ class FileTransfersWindow: self.set_status(typ, sid, 'ok') def get_iter_by_sid(self, typ, sid): + '''returns iter to the row, which holds file transfer, identified by the + session id''' iter = self.model.get_iter_root() while iter: - if typ + sid == self.model.get_value(iter, 4): + if typ + sid == self.model[iter][4]: return iter iter = self.model.iter_next(iter) - return None def add_transfer(self, account, contact, file_props): if file_props is None: @@ -1620,7 +1621,8 @@ class FileTransfersWindow: self.pause_button.set_property('sensitive', False) return True - def on_clean_button_clicked(self, widget): + + def on_remove_button_clicked(self, widget): selected = self.tree.get_selection().get_selected() if selected is None or selected[1] is None: return @@ -1665,5 +1667,5 @@ class FileTransfersWindow: def on_file_transfers_dialog_delete_event(self, widget, event): self.window.hide() - return True + return True # do NOT destory window diff --git a/src/gtkgui.glade b/src/gtkgui.glade index b8ecf410c..3853cd0b3 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -3162,7 +3162,7 @@ True - Gajim theme: + Color theme: False False GTK_JUSTIFY_LEFT @@ -4818,7 +4818,7 @@ True - Ask status message when going: + Ask status message when I: False False GTK_JUSTIFY_LEFT @@ -4846,7 +4846,7 @@ True True - _Online + Sign _in True GTK_RELIEF_NORMAL True @@ -4866,7 +4866,7 @@ True True - Of_fline + Sign _out True GTK_RELIEF_NORMAL True @@ -5519,7 +5519,7 @@ Custom True - Show roster window on startup + Show roster window at application startup True GTK_RELIEF_NORMAL True @@ -5559,7 +5559,7 @@ Custom True True - Check for new _version at startup + Check for new _version at application startup True GTK_RELIEF_NORMAL True @@ -17148,7 +17148,7 @@ Maybe I'll refactor later 6 - + True True True @@ -17162,7 +17162,7 @@ Maybe I'll refactor later This action removes single file transfer from the list. If the transfer is active, it is first stopped and then removed - + @@ -17210,7 +17210,7 @@ Maybe I'll refactor later True True - _Notify me when transfer is complete + _Notify me when a file transfer is complete True GTK_RELIEF_NORMAL True