Mercurial > pidgin.yaz
diff src/conversation.c @ 3473:0073a014e55b
[gaim-migrate @ 3524]
Fixed font preferences, and removed the title from alert windows.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 30 Aug 2002 03:04:12 +0000 |
parents | d33ec392a5e1 |
children | cfbdfe334975 |
line wrap: on
line diff
--- a/src/conversation.c Thu Aug 29 21:40:08 2002 +0000 +++ b/src/conversation.c Fri Aug 30 03:04:12 2002 +0000 @@ -77,7 +77,7 @@ GtkWidget *convo_notebook = NULL; char fontface[128] = { 0 }; -char fontxfld[256] = { 0 }; + int fontsize = 3; extern GdkColor bgcolor; extern GdkColor fgcolor; @@ -627,18 +627,8 @@ void set_font_face(char *newfont, struct conversation *c) { char *pre_fontface; - int i, j = 0, k = 0; - - - sprintf(c->fontxfld, "%s", newfont && *newfont ? newfont : DEFAULT_FONT_XFLD); - for (i = 0; i < strlen(c->fontxfld); i++) { - if (c->fontxfld[i] == '-') { - if (++j > 2) - break; - } else if (j == 2) - c->fontface[k++] = c->fontxfld[i]; - } - c->fontface[k] = '\0'; + + sprintf(c->fontface, "%s", newfont && *newfont ? newfont : DEFAULT_FONT_FACE); c->hasfont = 1; pre_fontface = g_strconcat("<FONT FACE=\"", c->fontface, "\">", NULL); @@ -2761,7 +2751,6 @@ c->smiley_dialog = NULL; c->link_dialog = NULL; c->log_dialog = NULL; - sprintf(c->fontxfld, "%s", fontxfld); sprintf(c->fontface, "%s", fontface); c->hasfont = 0; c->bgcol = bgcolor; @@ -3333,7 +3322,6 @@ if (b->hasfont) continue; sprintf(b->fontface, "%s", fontface); - sprintf(b->fontxfld, "%s", fontxfld); } }