[empathy: 5/14] Set EMPATHY_IMAGE_SMS on sms channels



commit a0069b64b55bd239eb7d4678fb9792b1359210dc
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Thu Apr 7 11:42:12 2011 +1000

    Set EMPATHY_IMAGE_SMS on sms channels

 src/empathy-chat-window.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 94f93e2..31cc070 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -675,6 +675,9 @@ chat_window_update_chat_tab_full (EmpathyChat *chat,
 	else if (remote_contact && empathy_chat_is_composing (chat)) {
 		icon_name = EMPATHY_IMAGE_TYPING;
 	}
+	else if (empathy_chat_is_sms_channel (chat)) {
+		icon_name = EMPATHY_IMAGE_SMS;
+	}
 	else if (remote_contact) {
 		icon_name = empathy_icon_name_for_contact (remote_contact);
 	} else {
@@ -2227,6 +2230,9 @@ empathy_chat_window_add_chat (EmpathyChatWindow *window,
 	g_signal_connect (chat, "notify::remote-contact",
 			  G_CALLBACK (chat_window_chat_notify_cb),
 			  NULL);
+	g_signal_connect (chat, "notify::sms-channel",
+			  G_CALLBACK (chat_window_chat_notify_cb),
+			  NULL);
 	chat_window_chat_notify_cb (chat);
 
 	gtk_notebook_append_page_menu (GTK_NOTEBOOK (priv->notebook), child, label, popup_label);



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