diff 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
line wrap: on
line diff
--- a/src/gtkutils.c	Fri Jan 07 22:44:01 2005 +0000
+++ b/src/gtkutils.c	Sat Jan 08 07:25:37 2005 +0000
@@ -1603,3 +1603,17 @@
 	}
 	g_list_free(files);
 }
+
+void gaim_gtk_buddy_icon_get_scale_size(GdkPixbuf *buf, GaimBuddyIconSpec *spec, int *width, int *height)
+{
+	*width = gdk_pixbuf_get_width(buf);
+	*height = gdk_pixbuf_get_height(buf);
+
+	gaim_buddy_icon_get_scale_size(spec, width, height);
+
+	/* and now for some arbitrary sanity checks */
+	if(*width > 100)
+		*width = 100;
+	if(*height > 100)
+		*height = 100;
+}