diff --git a/src/chat_control.py b/src/chat_control.py index 7a0a9effc..ae59d9f18 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -259,7 +259,7 @@ class ChatControlBase(MessageControl): def _on_send_button_clicked(self, widget): '''When send button is pressed: send the current message''' if gajim.connections[self.account].connected < 2: # we are not connected - dialog = dialogs.ErrorDialog(_('A connection is not available'), + dialogs.ErrorDialog(_('A connection is not available'), _('Your message can not be sent until you are connected.')) return message_buffer = self.msg_textview.get_buffer() @@ -465,7 +465,7 @@ class ChatControlBase(MessageControl): send_message = True if gajim.connections[self.account].connected < 2: # we are not connected - dialog = dialogs.ErrorDialog(_('A connection is not available'), + dialogs.ErrorDialog(_('A connection is not available'), _('Your message can not be sent until you are connected.')) send_message = False diff --git a/src/common/xmpp/simplexml.py b/src/common/xmpp/simplexml.py index aff4120cd..89a6cec59 100644 --- a/src/common/xmpp/simplexml.py +++ b/src/common/xmpp/simplexml.py @@ -252,7 +252,7 @@ class Node(object): return self.setAttr(item,val) def __delitem__(self,item): """ Deletes node's attribute "item". """ - return self.delAttr(item,val) + return self.delAttr(item) def __getattr__(self,attr): """ Reduce memory usage caused by T/NT classes - use memory only when needed. """ if attr=='T': diff --git a/src/message_control.py b/src/message_control.py index 8c9c0612c..6d44d3143 100644 --- a/src/message_control.py +++ b/src/message_control.py @@ -68,7 +68,7 @@ class MessageControl: # NOTE: Derived classes MUST implement this pass - def repaint_themed_widgets(self, theme): + def repaint_themed_widgets(self): pass # NOTE: Derived classes SHOULD implement this def update_ui(self):