Mercurial > pidgin.yaz
changeset 5117:be43e51c523c
[gaim-migrate @ 5480]
Fix for non aim/icq font size. Previoulsy the POINT_SIZE
conversion was being done for all protocols.
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Sun, 13 Apr 2003 01:42:18 +0000 |
parents | c081a81ee013 |
children | c4664c2bfbf8 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sat Apr 12 23:31:41 2003 +0000 +++ b/src/gtkimhtml.c Sun Apr 13 01:42:18 2003 +0000 @@ -825,7 +825,10 @@ gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \ } \ if (fd->size) { \ - texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "size-points", (double)POINT_SIZE(fd->size), NULL); \ + gushort points; \ + /* only do the POINT_SIZE converstion for AIM/ICQ */ \ + points = (strcmp(fd->sml, "AIM/ICQ") == 0) ? POINT_SIZE(fd->size) : fd->size; \ + texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "size-points", (double)points, NULL); \ gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \ } \ } \