| 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) |