# HG changeset patch # User Eric Warmenhoven # Date 966377534 0 # Node ID 02ef523db170fc63053006d1820a198daaeec365 # Parent cd6772d0685a90bdb3e0ca7a071943cdad2c120c [gaim-migrate @ 697] remember fontface per conversation committer: Tailor Script diff -r cd6772d0685a -r 02ef523db170 src/conversation.c --- a/src/conversation.c Tue Aug 15 18:32:56 2000 +0000 +++ b/src/conversation.c Tue Aug 15 22:12:14 2000 +0000 @@ -405,6 +405,7 @@ pre_fontface = ""; } + sprintf(c->fontface, "%s", newfont ? (newfont[0] ? newfont : "Helvetica") : "Helvetica"); surround(c->entry, pre_fontface, ""); gtk_widget_grab_focus(c->entry); @@ -575,17 +576,17 @@ } if (font_options & OPT_FONT_FACE) { - g_snprintf(buf2, BUF_LONG, "%s", fontface, buf); + g_snprintf(buf2, BUF_LONG, "%s", c->fontface, buf); strcpy(buf, buf2); } if (font_options & OPT_FONT_FGCOL) { - g_snprintf(buf2, BUF_LONG, "%s", fgcolor, buf); + g_snprintf(buf2, BUF_LONG, "%s", c->fgcol, buf); strcpy(buf, buf2); } if (font_options & OPT_FONT_BGCOL) { - g_snprintf(buf2, BUF_LONG, "%s", bgcolor, buf); + g_snprintf(buf2, BUF_LONG, "%s", c->bgcol, buf); strcpy(buf, buf2); } @@ -1587,6 +1588,9 @@ c->smiley_dialog = NULL; c->link_dialog = NULL; c->log_dialog = NULL; + sprintf(c->fontface, "%s", fontface); + c->bgcol = bgcolor; + c->fgcol = fgcolor; gtk_container_add(GTK_CONTAINER(win), paned); gtk_container_border_width(GTK_CONTAINER(win), 10); diff -r cd6772d0685a -r 02ef523db170 src/gaim.h --- a/src/gaim.h Tue Aug 15 18:32:56 2000 +0000 +++ b/src/gaim.h Tue Aug 15 22:12:14 2000 +0000 @@ -275,6 +275,9 @@ GtkWidget *link_dialog; GtkWidget *log_dialog; int makesound; + char fontface[128]; + int bgcol; + int fgcol; /* stuff used just for IM */ GtkWidget *add_button; @@ -393,7 +396,7 @@ #define TYPE_SIGNOFF 4 #define TYPE_KEEPALIVE 5 -#define REVISION "gaim:$Revision: 694 $" +#define REVISION "gaim:$Revision: 697 $" #define FLAPON "FLAPON\r\n\r\n" #define ROAST "Tic/Toc"