comparison src/gtkutils.c @ 10483:748aa3c6de36

[gaim-migrate @ 11773] scaling for the buddy icons in the tooltips, and whatever else decided to sneak in on this commit committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 08 Jan 2005 07:25:37 +0000
parents 64bc206c7473
children 1a97d5e88d12
comparison
equal deleted inserted replaced
10482:1ac8f10ce68d 10483:748aa3c6de36
1601 serv_send_file(gc, who, filename); 1601 serv_send_file(gc, who, filename);
1602 g_free(filename); 1602 g_free(filename);
1603 } 1603 }
1604 g_list_free(files); 1604 g_list_free(files);
1605 } 1605 }
1606
1607 void gaim_gtk_buddy_icon_get_scale_size(GdkPixbuf *buf, GaimBuddyIconSpec *spec, int *width, int *height)
1608 {
1609 *width = gdk_pixbuf_get_width(buf);
1610 *height = gdk_pixbuf_get_height(buf);
1611
1612 gaim_buddy_icon_get_scale_size(spec, width, height);
1613
1614 /* and now for some arbitrary sanity checks */
1615 if(*width > 100)
1616 *width = 100;
1617 if(*height > 100)
1618 *height = 100;
1619 }