aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-event-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-06-18 00:19:00 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-06-18 00:19:00 +0800
commitd0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3 (patch)
treef33384324e5db5eb4482084d73d4388fb83d4a00 /src/empathy-event-manager.c
parent8f7597bb501d2e641b09f55769990df97576cd0f (diff)
downloadgsoc2013-empathy-d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3.tar
gsoc2013-empathy-d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3.tar.gz
gsoc2013-empathy-d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3.tar.bz2
gsoc2013-empathy-d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3.tar.lz
gsoc2013-empathy-d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3.tar.xz
gsoc2013-empathy-d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3.tar.zst
gsoc2013-empathy-d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3.zip
Remove 'new message from' from notification message (#586102). Based on a patch from Nicolo Chieffo
Diffstat (limited to 'src/empathy-event-manager.c')
-rw-r--r--src/empathy-event-manager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 81d98ef74..1ee619e58 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -409,7 +409,7 @@ event_manager_chat_message_received_cb (EmpathyTpChat *tp_chat,
EmpathyMessage *message, EventManagerApproval *approval)
{
EmpathyContact *sender;
- gchar *header;
+ const gchar *header;
const gchar *msg;
TpChannel *channel;
EventPriv *event;
@@ -426,8 +426,7 @@ event_manager_chat_message_received_cb (EmpathyTpChat *tp_chat,
}
sender = empathy_message_get_sender (message);
- header = g_strdup_printf (_("New message from %s"),
- empathy_contact_get_name (sender));
+ header = empathy_contact_get_name (sender);
msg = empathy_message_get_body (message);
channel = empathy_tp_chat_get_channel (tp_chat);
@@ -438,7 +437,6 @@ event_manager_chat_message_received_cb (EmpathyTpChat *tp_chat,
event_manager_add (approval->manager, sender, EMPATHY_IMAGE_NEW_MESSAGE, header,
msg, approval, event_text_channel_process_func, NULL);
- g_free (header);
empathy_sound_play (empathy_main_window_get (),
EMPATHY_SOUND_CONVERSATION_NEW);
}