aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-utils.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-05 20:14:34 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-05 20:14:34 +0800
commit1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567 (patch)
tree0f290f2b143f24c80238962d4463737e1152dda4 /libempathy/empathy-utils.c
parentb5e7268ebc857928c6672d84b23c1c05f9a45bd5 (diff)
downloadgsoc2013-empathy-1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567.tar
gsoc2013-empathy-1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567.tar.gz
gsoc2013-empathy-1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567.tar.bz2
gsoc2013-empathy-1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567.tar.lz
gsoc2013-empathy-1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567.tar.xz
gsoc2013-empathy-1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567.tar.zst
gsoc2013-empathy-1707cb8bb953cb4886a8e3b8ab0eeddf0d6b0567.zip
no need to pass the reason to empathy_account_get_error_message
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r--libempathy/empathy-utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index b0abaa948..b47987f85 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -387,11 +387,11 @@ empathy_dbus_error_name_get_default_message (const gchar *error)
}
const gchar *
-empathy_account_get_error_message (TpAccount *account,
- TpConnectionStatusReason reason)
+empathy_account_get_error_message (TpAccount *account)
{
const gchar *dbus_error;
const gchar *message;
+ TpConnectionStatusReason reason;
dbus_error = tp_account_get_detailed_error (account, NULL);
message = empathy_dbus_error_name_get_default_message (dbus_error);
@@ -401,6 +401,8 @@ empathy_account_get_error_message (TpAccount *account,
DEBUG ("Don't understand error '%s'; fallback to the status reason (%u)",
dbus_error, reason);
+ tp_account_get_connection_status (account, &reason);
+
return empathy_status_reason_get_default_message (reason);
}