aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-08-31 07:17:55 +0800
committerWill Thompson <will.thompson@collabora.co.uk>2009-08-31 08:17:52 +0800
commit2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd (patch)
treee0c0eb2cbb83494a36760b84e2ade113322d8b33
parenta0ee1ca8fbbbe6d34c123eb46b32fc4f1e75779b (diff)
downloadgsoc2013-empathy-2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd.tar
gsoc2013-empathy-2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd.tar.gz
gsoc2013-empathy-2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd.tar.bz2
gsoc2013-empathy-2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd.tar.lz
gsoc2013-empathy-2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd.tar.xz
gsoc2013-empathy-2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd.tar.zst
gsoc2013-empathy-2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd.zip
Handle SendError signal correctly, not as a message
Fixes Gnome bug #593095 - Send errors are printed as normal messages.
-rw-r--r--libempathy/empathy-tp-chat.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 7953b69e2..7429e1ddc 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -339,14 +339,9 @@ tp_chat_send_error_cb (TpChannel *channel,
if (priv->channel == NULL)
return;
- DEBUG ("Message sent error: %s (%d)", message_body, error_code);
+ DEBUG ("Error sending '%s' (%d)", message_body, error_code);
- tp_chat_build_message (EMPATHY_TP_CHAT (chat),
- 0,
- message_type,
- timestamp,
- 0,
- message_body);
+ g_signal_emit (chat, signals[SEND_ERROR], 0, message_body, error_code);
}
static void