changeset 14864:b8a4f82bc24e

[gaim-migrate @ 17633] Make the default_formatize() function not set the font size to the default size (3). If someone thinks I should separate that magical 3 value out of gtkconv (since it comes from gtkimhtml.c), let me know. I think that's more trouble than it's worth. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 31 Oct 2006 01:01:01 +0000
parents be6b841cd1f4
children 61c3edbaf048
files gtk/gtkconv.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkconv.c	Tue Oct 31 00:37:34 2006 +0000
+++ b/gtk/gtkconv.c	Tue Oct 31 01:01:01 2006 +0000
@@ -276,8 +276,15 @@
 			gaim_prefs_get_string("/gaim/gtk/conversations/font_face"));
 
 		if (!(conv->features & GAIM_CONNECTION_NO_FONTSIZE))
-			gtk_imhtml_font_set_size(GTK_IMHTML(c->entry),
-				gaim_prefs_get_int("/gaim/gtk/conversations/font_size"));
+		{
+			int size = gaim_prefs_get_int("/gaim/gtk/conversations/font_size");
+
+			/* 3 is the default. */
+			if (size != 3)
+			{
+				gtk_imhtml_font_set_size(GTK_IMHTML(c->entry), size);
+			}
+		}
 
 		if(strcmp(gaim_prefs_get_string("/gaim/gtk/conversations/fgcolor"), "") != 0)
 		{