Mercurial > pidgin.yaz
diff src/conversation.c @ 1441:5c67b8794991
[gaim-migrate @ 1451]
patch from decklin to have default font size. yum.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 29 Jan 2001 01:19:24 +0000 |
parents | 6330d0bb309f |
children | 2f4e6269b001 |
line wrap: on
line diff
--- a/src/conversation.c Mon Jan 29 01:13:31 2001 +0000 +++ b/src/conversation.c Mon Jan 29 01:19:24 2001 +0000 @@ -61,6 +61,7 @@ GdkBitmap *dark_icon_bm = NULL; char fontface[64]; +int fontsize = 3; extern GdkColor bgcolor; extern GdkColor fgcolor; @@ -638,6 +639,11 @@ strcpy(buf, buf2); } + if ((font_options & OPT_FONT_SIZE) || c->hassize) { + g_snprintf(buf2, limit, "<FONT SIZE=\"%d\">%s</FONT>", c->fontsize, buf); + strcpy(buf, buf2); + } + if ((font_options & OPT_FONT_FGCOL) || c->hasfg) { g_snprintf(buf2, limit, "<FONT COLOR=\"#%02X%02X%02X\">%s</FONT>", c->fgcol.red, c->fgcol.green, c->fgcol.blue, buf); @@ -1689,6 +1695,8 @@ c->log_dialog = NULL; sprintf(c->fontface, "%s", fontface); c->hasfont = 0; + c->fontsize = fontsize; + c->hassize = 0; c->bgcol = bgcolor; c->hasbg = 0; c->fgcol = fgcolor;