changeset 957:032a6e1553c1

[gaim-migrate @ 967] grr, this should fix the smiley-size issue once and for all... committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Sun, 08 Oct 2000 05:03:46 +0000
parents 0f9fc69a1f3b
children df664ea5eced
files src/gtkhtml.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkhtml.c	Sun Oct 08 04:29:34 2000 +0000
+++ b/src/gtkhtml.c	Sun Oct 08 05:03:46 2000 +0000
@@ -4445,7 +4445,8 @@
 		hbit = (GtkHtmlBit *)hbits->data;	
 		if (hbit->font)
 			height = gdk_text_height(hbit->font, "C", 1);	
-
+		else if(hbit->type == HTML_BIT_PIXMAP)
+			height = 19;
 		if (max_height < height)
 			max_height = height;
 		if (hbit->newline)
@@ -4475,7 +4476,12 @@
 		hbit = (GtkHtmlBit *)hbits->data;	
 		if (hbit->font)
 			gdk_text_extents(hbit->font, "yG", strlen("yG"), NULL, NULL, NULL, &acsent, &descent);
-
+		else if (hbit->type == HTML_BIT_PIXMAP)
+		{
+			acsent =9;
+			descent = 8;
+		}
+		
 		if (*max_acsent < acsent)
 			*max_acsent = acsent;
 		if (*max_descent < descent)