[gnome-chat] chat-contacts-list-dialog: Fix the size of an avatar
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chat] chat-contacts-list-dialog: Fix the size of an avatar
- Date: Fri, 13 Sep 2013 09:35:40 +0000 (UTC)
commit 2e37f01c788a33cb1626834eed484db4a498af5d
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Fri Sep 13 12:31:41 2013 +0300
chat-contacts-list-dialog: Fix the size of an avatar
src/chat-contacts-list-dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/chat-contacts-list-dialog.c b/src/chat-contacts-list-dialog.c
index 9eba12b..0745ff7 100644
--- a/src/chat-contacts-list-dialog.c
+++ b/src/chat-contacts-list-dialog.c
@@ -81,7 +81,7 @@ chat_contacts_list_dialog_get_avatar_image (TpContact *contact)
}
else
{
- pixbuf = gdk_pixbuf_new_from_stream (G_INPUT_STREAM (stream), NULL, &error);
+ pixbuf = gdk_pixbuf_new_from_stream_at_scale (G_INPUT_STREAM (stream), 32, 32, TRUE, NULL, &error);
if (!pixbuf)
{
g_warning ("Failed to create avatar: %s", error->message);
@@ -95,7 +95,7 @@ chat_contacts_list_dialog_get_avatar_image (TpContact *contact)
}
return gtk_image_new_from_icon_name ("avatar-default-symbolic",
- GTK_ICON_SIZE_LARGE_TOOLBAR);
+ GTK_ICON_SIZE_DND);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]