]> git.0d.be Git - empathy.git/commitdiff
Set EMPATHY_IMAGE_SMS on sms channels
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Thu, 7 Apr 2011 01:42:12 +0000 (11:42 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Thu, 5 May 2011 06:31:26 +0000 (16:31 +1000)
src/empathy-chat-window.c

index 94f93e2bf25f7f24fa592c8803daa96f18756d8b..31cc070404c23766dc80f848ab62c07c0efe3816 100644 (file)
@@ -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);