Mercurial > pidgin.yaz
comparison src/util.c @ 8686:140b0d020c43
[gaim-migrate @ 9439]
" This fixes the GTKIMHTML CSS processing so that it
works again:
- Added support for background colors in the CSS
processing.
- Log viewer will now display all formatting including
font colors, sizes, faces, etc.
- Jabber underline will now appear in received messages
- Logger will now log *ALL 7* possible font sizes
instead of just smaller (1-3), medium (4), and larger
(5-7) and recognize them in IMHTML.
This is accomplished by fixing the font size
specifications in gaim_markup_html_to_xhtml and then a
partial rewrite of the CSS formatting code." --Kevin Stange
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 18 Apr 2004 00:21:58 +0000 |
parents | afff7b6ae29f |
children | ddd2bf87fe8d |
comparison
equal
deleted
inserted
replaced
8685:2ac2f4cf1de5 | 8686:140b0d020c43 |
---|---|
976 int sz; | 976 int sz; |
977 const char *size = "medium"; | 977 const char *size = "medium"; |
978 if(*q == '\'' || *q == '\"') | 978 if(*q == '\'' || *q == '\"') |
979 q++; | 979 q++; |
980 sz = atoi(q); | 980 sz = atoi(q); |
981 if(sz < 3) | 981 switch (sz) |
982 size = "smaller"; | 982 { |
983 else if(sz > 3) | 983 case 1: |
984 size = "larger"; | 984 size = "xx-small"; |
985 break; | |
986 case 2: | |
987 size = "x-small"; | |
988 break; | |
989 case 3: | |
990 size = "small"; | |
991 break; | |
992 case 4: | |
993 size = "medium"; | |
994 break; | |
995 case 5: | |
996 size = "large"; | |
997 break; | |
998 case 6: | |
999 size = "x-large"; | |
1000 break; | |
1001 case 7: | |
1002 size = "xx-large"; | |
1003 break; | |
1004 default: | |
1005 break; | |
1006 } | |
985 g_string_append_printf(style, "font-size: %s; ", size); | 1007 g_string_append_printf(style, "font-size: %s; ", size); |
986 p = q; | 1008 p = q; |
987 } | 1009 } |
988 p++; | 1010 p++; |
989 } | 1011 } |