diff src/gtkimhtml.c @ 2705:5f431eefb0f2

[gaim-migrate @ 2718] no, that didn't work well. what's the right fix? god i hate fonts. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 10 Nov 2001 03:50:52 +0000
parents 59b9b9bed67f
children 8074f7ae5d3a
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sat Nov 10 02:07:37 2001 +0000
+++ b/src/gtkimhtml.c	Sat Nov 10 03:50:52 2001 +0000
@@ -1928,8 +1928,13 @@
 		newvals [NAME] = names [i];
 
 		if (xflds [PTSZ][0]) {
+			g_snprintf (fs, sizeof (fs), "%d",
+				    font_sizes [MIN (fontsize, MAX_SIZE) - 1] / 10);
+			newvals [PTSZ] = fs;
+			newvals [SIZE] = "";
+			TRY_FONT;
+
 			newvals [PTSZ] = xflds [PTSZ];
-			newvals [SIZE] = "";
 		} else
 			newvals [SIZE] = xflds [SIZE];
 		TRY_FONT;