aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-ui-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-11 02:12:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-11 02:12:36 +0800
commit104362fe34c3881f6956844de2a0403f0ea1b3d0 (patch)
tree36a89452af5fc5615287e5a2c6bec3458a3ad3b3 /libempathy-gtk/gossip-ui-utils.c
parent57ba29d727cac36a4cb5bf30b3f8815ad5568a0c (diff)
downloadgsoc2013-empathy-104362fe34c3881f6956844de2a0403f0ea1b3d0.tar
gsoc2013-empathy-104362fe34c3881f6956844de2a0403f0ea1b3d0.tar.gz
gsoc2013-empathy-104362fe34c3881f6956844de2a0403f0ea1b3d0.tar.bz2
gsoc2013-empathy-104362fe34c3881f6956844de2a0403f0ea1b3d0.tar.lz
gsoc2013-empathy-104362fe34c3881f6956844de2a0403f0ea1b3d0.tar.xz
gsoc2013-empathy-104362fe34c3881f6956844de2a0403f0ea1b3d0.tar.zst
gsoc2013-empathy-104362fe34c3881f6956844de2a0403f0ea1b3d0.zip
[darcs-to-svn @ Fix icon size]
svn path=/trunk/; revision=46
Diffstat (limited to 'libempathy-gtk/gossip-ui-utils.c')
-rw-r--r--libempathy-gtk/gossip-ui-utils.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/gossip-ui-utils.c b/libempathy-gtk/gossip-ui-utils.c
index 9bf2fb36d..cf12a51bb 100644
--- a/libempathy-gtk/gossip-ui-utils.c
+++ b/libempathy-gtk/gossip-ui-utils.c
@@ -208,12 +208,18 @@ gossip_pixbuf_from_icon_name (const gchar *icon_name,
GtkIconTheme *theme;
GdkPixbuf *pixbuf = NULL;
GError *error = NULL;
+ gint w, h;
+ gint size = 48;
theme = gtk_icon_theme_get_default ();
+ if (gtk_icon_size_lookup (icon_size, &w, &h)) {
+ size = (w + h) / 2;
+ }
+
pixbuf = gtk_icon_theme_load_icon (theme,
icon_name,
- icon_size,
+ size,
0,
&error);
if (error) {