diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-18 00:19:00 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-18 00:19:00 +0800 |
commit | d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3 (patch) | |
tree | f33384324e5db5eb4482084d73d4388fb83d4a00 /src/empathy-chat-window.c | |
parent | 8f7597bb501d2e641b09f55769990df97576cd0f (diff) | |
download | gsoc2013-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-chat-window.c')
-rw-r--r-- | src/empathy-chat-window.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 9c2dbc490..118c7375e 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -910,7 +910,8 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window, EmpathyChat *chat) { EmpathyContact *sender; - char *header, *escaped; + const gchar *header; + char *escaped; const char *body; GdkPixbuf *pixbuf; NotificationData *cb_data; @@ -932,8 +933,7 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window, cb_data->window = window; 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); body = empathy_message_get_body (message); escaped = g_markup_escape_text (body, -1); @@ -955,7 +955,6 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window, notify_notification_show (priv->notification, NULL); g_object_unref (pixbuf); - g_free (header); g_free (escaped); } |