Mercurial > pidgin
comparison src/gtkutils.c @ 13109:079f7a452e3a
[gaim-migrate @ 15471]
Increase the display size of a few icons by one or two pixels. I think
32 and 16 are much more standard sizes for icons, and this makes the away
icon scale better in the gtkstatusbox. It now looks the same as the one
displayed in the buddy list
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 03 Feb 2006 03:51:08 +0000 |
parents | 5828d42e8684 |
children | 7a05525e4197 |
comparison
equal
deleted
inserted
replaced
13108:8695e933ad64 | 13109:079f7a452e3a |
---|---|
1577 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status", | 1577 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status", |
1578 "default", buf, NULL); | 1578 "default", buf, NULL); |
1579 pixbuf = gdk_pixbuf_new_from_file(filename, NULL); | 1579 pixbuf = gdk_pixbuf_new_from_file(filename, NULL); |
1580 g_free(filename); | 1580 g_free(filename); |
1581 | 1581 |
1582 scaled = gdk_pixbuf_scale_simple(pixbuf, 30*scale_factor, | 1582 scaled = gdk_pixbuf_scale_simple(pixbuf, 32*scale_factor, |
1583 30*scale_factor, GDK_INTERP_BILINEAR); | 1583 32*scale_factor, GDK_INTERP_BILINEAR); |
1584 g_object_unref(pixbuf); | 1584 g_object_unref(pixbuf); |
1585 | 1585 |
1586 return scaled; | 1586 return scaled; |
1587 } | 1587 } |
1588 | 1588 |
1666 orig = gdk_pixbuf_new_from_file(filename, NULL); | 1666 orig = gdk_pixbuf_new_from_file(filename, NULL); |
1667 g_free(filename); | 1667 g_free(filename); |
1668 if (orig == NULL) | 1668 if (orig == NULL) |
1669 return NULL; | 1669 return NULL; |
1670 | 1670 |
1671 pixbuf = gdk_pixbuf_scale_simple(orig, 30*scale_factor, | 1671 pixbuf = gdk_pixbuf_scale_simple(orig, 32*scale_factor, |
1672 30*scale_factor, GDK_INTERP_BILINEAR); | 1672 32*scale_factor, GDK_INTERP_BILINEAR); |
1673 g_object_unref(G_OBJECT(orig)); | 1673 g_object_unref(G_OBJECT(orig)); |
1674 | 1674 |
1675 return overlay_status_onto_icon(pixbuf, primitive); | 1675 return overlay_status_onto_icon(pixbuf, primitive); |
1676 } | 1676 } |
1677 | 1677 |