src/conversation.c

changeset 2761
db48e3d8e208
parent 2749
ee6f9af8a5b0
child 2763
18a8e555039b
equal deleted inserted replaced
2760:3f3b55a0f422 2761:db48e3d8e208
507 pre_fontface = g_strconcat("<FONT FACE=\"", newfont, "\">", '\0'); 507 pre_fontface = g_strconcat("<FONT FACE=\"", newfont, "\">", '\0');
508 508
509 if (!strcmp(pre_fontface, "<FONT FACE=\"\">")) { 509 if (!strcmp(pre_fontface, "<FONT FACE=\"\">")) {
510 g_free(pre_fontface); 510 g_free(pre_fontface);
511 alloc--; 511 alloc--;
512 pre_fontface = "<FONT FACE=\"Helvetica\">"; 512 pre_fontface = "<FONT FACE=\"" DEFAULT_FONT_FACE "\">";
513 } 513 }
514 514
515 sprintf(c->fontface, "%s", newfont ? (newfont[0] ? newfont : "Helvetica") : "Helvetica"); 515 sprintf(c->fontface, "%s", newfont ?
516 (newfont[0] ? newfont : DEFAULT_FONT_FACE) : DEFAULT_FONT_FACE);
516 c->hasfont = 1; 517 c->hasfont = 1;
517 surround(c->entry, pre_fontface, "</FONT>"); 518 surround(c->entry, pre_fontface, "</FONT>");
518 gtk_widget_grab_focus(c->entry); 519 gtk_widget_grab_focus(c->entry);
519 520
520 if (alloc) 521 if (alloc)

mercurial