aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:08:29 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:08:29 +0800
commit969df6cdc59df3e57c8c1619bd9a197124939c2d (patch)
tree811af868c2c3536ce320d2208a2b97fb2eb622be /src/empathy-chat-window.c
parent885555ee46acc4f4fe96b04b554ee3a0f2ae4baa (diff)
downloadgsoc2013-empathy-969df6cdc59df3e57c8c1619bd9a197124939c2d.tar
gsoc2013-empathy-969df6cdc59df3e57c8c1619bd9a197124939c2d.tar.gz
gsoc2013-empathy-969df6cdc59df3e57c8c1619bd9a197124939c2d.tar.bz2
gsoc2013-empathy-969df6cdc59df3e57c8c1619bd9a197124939c2d.tar.lz
gsoc2013-empathy-969df6cdc59df3e57c8c1619bd9a197124939c2d.tar.xz
gsoc2013-empathy-969df6cdc59df3e57c8c1619bd9a197124939c2d.tar.zst
gsoc2013-empathy-969df6cdc59df3e57c8c1619bd9a197124939c2d.zip
Factor out some common code.
svn path=/trunk/; revision=2302
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index fdf1f5443..83f9c8166 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -893,11 +893,8 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window,
empathy_contact_get_name (sender));
body = empathy_message_get_body (message);
escaped = g_markup_escape_text (body, -1);
- pixbuf = empathy_pixbuf_avatar_from_contact_scaled (sender, 48, 48);
- if (pixbuf == NULL) {
- pixbuf = empathy_pixbuf_from_icon_name_sized
- (EMPATHY_IMAGE_NEW_MESSAGE, 48);
- }
+
+ pixbuf = empathy_misc_get_pixbuf_for_notification (sender, EMPATHY_IMAGE_NEW_MESSAGE);
if (priv->notification != NULL) {
notify_notification_update (priv->notification,