Mercurial > pidgin
comparison src/gtkimhtml.c @ 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 | 4cfc49e31c2e |
children | c4664c2bfbf8 |
comparison
equal
deleted
inserted
replaced
5116:c081a81ee013 | 5117:be43e51c523c |
---|---|
823 if (fd->face) { \ | 823 if (fd->face) { \ |
824 texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "font", fd->face, NULL); \ | 824 texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "font", fd->face, NULL); \ |
825 gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \ | 825 gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \ |
826 } \ | 826 } \ |
827 if (fd->size) { \ | 827 if (fd->size) { \ |
828 texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "size-points", (double)POINT_SIZE(fd->size), NULL); \ | 828 gushort points; \ |
829 /* only do the POINT_SIZE converstion for AIM/ICQ */ \ | |
830 points = (strcmp(fd->sml, "AIM/ICQ") == 0) ? POINT_SIZE(fd->size) : fd->size; \ | |
831 texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "size-points", (double)points, NULL); \ | |
829 gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \ | 832 gtk_text_buffer_apply_tag(imhtml->text_buffer, texttag, &siter, &iter); \ |
830 } \ | 833 } \ |
831 } \ | 834 } \ |
832 if (url) { \ | 835 if (url) { \ |
833 texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "foreground", "blue", "underline", PANGO_UNDERLINE_SINGLE, NULL); \ | 836 texttag = gtk_text_buffer_create_tag(imhtml->text_buffer, NULL, "foreground", "blue", "underline", PANGO_UNDERLINE_SINGLE, NULL); \ |