[empathy: 2/5] Handle SendError signal correctly, not as a message
- From: Will Thompson <wjt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy: 2/5] Handle SendError signal correctly, not as a message
- Date: Mon, 31 Aug 2009 10:11:00 +0000 (UTC)
commit 2150f8ae4242fe2a26f29c96ddeb27ace1fe90fd
Author: Will Thompson <will thompson collabora co uk>
Date: Mon Aug 31 00:17:55 2009 +0100
Handle SendError signal correctly, not as a message
Fixes Gnome bug #593095 - Send errors are printed as normal messages.
libempathy/empathy-tp-chat.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 7953b69..7429e1d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]