[empathy] Fall back to protocol name in Adium themes



commit 1c6faef3890bc3819bcc44299cff20e021fc3717
Author: Will Thompson <will thompson collabora co uk>
Date:   Tue Aug 25 16:07:49 2009 +0100

    Fall back to protocol name in Adium themes
    
    Reviewed-by: Sjoerd Simons <sjoerd simons collabora co uk>

 libempathy-gtk/empathy-theme-adium.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 66d9146..59d5583 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -547,6 +547,8 @@ theme_adium_append_message (EmpathyChatView *view,
 	account = empathy_contact_get_account (sender);
 	service_name = empathy_protocol_name_to_display_name
 		(empathy_account_get_protocol (account));
+	if (service_name == NULL)
+		service_name = empathy_account_get_protocol (account);
 	timestamp = empathy_message_get_timestamp (msg);
 	body = empathy_message_get_body (msg);
 	dup_body = theme_adium_parse_body (theme, body);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]