pidgin: 914921bf: imhtml: When inserting html, only set a ...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Aug 9 23:30:43 EDT 2009


-----------------------------------------------------------------
Revision: 914921bfe0d4ed0711648940bd871a18809ea203
Ancestor: d6aa58e0fd7dbc73b17cd9359956922b86f71e30
Author: darkrain42 at pidgin.im
Date: 2009-08-10T03:27:52
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/914921bfe0d4ed0711648940bd871a18809ea203

Modified files:
        pidgin/gtkimhtml.c

ChangeLog: 

imhtml: When inserting html, only set a font if it's a change from the default. Fixes #7648.

-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c	ac2961959edfc35e44eac7d5b9a424278f369492
+++ pidgin/gtkimhtml.c	c330c7a29eccf9fead311847c1ad32cfb762ae80
@@ -2953,7 +2953,7 @@ void gtk_imhtml_insert_html_at_iter(GtkI
 							font->size = oldfont->size;
 						else
 							font->size = 3;
-						if ((imhtml->format_functions & (GTK_IMHTML_GROW|GTK_IMHTML_SHRINK)))
+						if ((imhtml->format_functions & (GTK_IMHTML_GROW|GTK_IMHTML_SHRINK)) && (font->size != 3 || (oldfont && oldfont->size == 3)))
 							gtk_imhtml_font_set_size(imhtml, font->size);
 						g_free(size);
 						fonts = g_slist_prepend (fonts, font);


More information about the Commits mailing list