summaryrefslogtreecommitdiff
path: root/src/core/handlers.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-29 02:20:06 +0200
committermathieui <mathieui@mathieui.net>2014-04-29 02:20:06 +0200
commit6391d97b3af266fe5e348283196bcb7f1ec78c7c (patch)
tree751237c51f23083257f0c591b712195993eaeb4f /src/core/handlers.py
parent9e72f8336da77c566fbbe6aad7caf6e79a0aab58 (diff)
downloadpoezio-6391d97b3af266fe5e348283196bcb7f1ec78c7c.tar.gz
poezio-6391d97b3af266fe5e348283196bcb7f1ec78c7c.tar.bz2
poezio-6391d97b3af266fe5e348283196bcb7f1ec78c7c.tar.xz
poezio-6391d97b3af266fe5e348283196bcb7f1ec78c7c.zip
Fix most UI issues with introduced in 0caf941
Diffstat (limited to 'src/core/handlers.py')
-rw-r--r--src/core/handlers.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index 05eab9f7..12e07201 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -813,7 +813,7 @@ def on_failed_connection(self):
"""
We cannot contact the remote server
"""
- self.information(_("Connection to remote server failed"))
+ self.information(_("Connection to remote server failed"), _('Error'))
def on_disconnected(self, event):
"""
@@ -822,25 +822,27 @@ def on_disconnected(self, event):
roster.modified()
for tab in self.get_tabs(tabs.MucTab):
tab.disconnect()
- self.information(_("Disconnected from server."))
+ self.information(_("Disconnected from server."), _('Error'))
def on_failed_auth(self, event):
"""
Authentication failed
"""
- self.information(_("Authentication failed (bad credentials?)."))
+ self.information(_("Authentication failed (bad credentials?)."),
+ _('Error'))
def on_no_auth(self, event):
"""
Authentication failed (no mech)
"""
- self.information(_("Authentication failed, no login method available."))
+ self.information(_("Authentication failed, no login method available."),
+ _('Error'))
def on_connected(self, event):
"""
Remote host responded, but we are not yet authenticated
"""
- self.information(_("Connected to server."))
+ self.information(_("Connected to server."), 'Info')
def on_session_start(self, event):
"""
@@ -849,8 +851,8 @@ def on_session_start(self, event):
self.connection_time = time.time()
if not self.plugins_autoloaded: # Do not reload plugins on reconnection
self.autoload_plugins()
- self.information(_("Authentication success."))
- self.information(_("Your JID is %s") % self.xmpp.boundjid.full)
+ self.information(_("Authentication success."), 'Info')
+ self.information(_("Your JID is %s") % self.xmpp.boundjid.full, 'Info')
if not self.xmpp.anon:
# request the roster
self.xmpp.get_roster()