From d0a3c7a9e5052a5487e74fe70e0d1f40c6f904a3 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 17 Jun 2009 17:19:00 +0100 Subject: Remove 'new message from' from notification message (#586102). Based on a patch from Nicolo Chieffo --- src/empathy-chat-window.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/empathy-chat-window.c') 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); } -- cgit v1.2.3