changeset 1759:e0f936b4c91a

[gaim-migrate @ 1769] i'm so tired i can't sleep sit and drink penny royal tea committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 27 Apr 2001 07:55:01 +0000
parents eb7b48eef4a3
children c55038f061dd
files src/conversation.c src/dialogs.c
diffstat 2 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Fri Apr 27 07:34:21 2001 +0000
+++ b/src/conversation.c	Fri Apr 27 07:55:01 2001 +0000
@@ -2351,3 +2351,34 @@
 		}
 	}
 }
+
+void update_convo_color(gboolean fg)
+{
+	GList *c = conversations;
+	struct conversation *b;
+
+	while (c) {
+		b = c->data;
+		c = c->next;
+		if (fg) {
+			if (b->hasfg) continue;
+			b->fgcol = fgcolor;
+		} else {
+			if (b->hasbg) continue;
+			b->bgcol = bgcolor;
+		}
+	}
+}
+
+void update_convo_font()
+{
+	GList *c = conversations;
+	struct conversation *b;
+
+	while (c) {
+		b = c->data;
+		c = c->next;
+		if (b->hasfont) continue;
+		sprintf(b->fontface, "%s", fontface);
+	}
+}
--- a/src/dialogs.c	Fri Apr 27 07:34:21 2001 +0000
+++ b/src/dialogs.c	Fri Apr 27 07:55:01 2001 +0000
@@ -2517,6 +2517,7 @@
 		fgcolor.green = ((guint16)(color[1]*65535))>>8;
 		fgcolor.blue = ((guint16)(color[2]*65535))>>8;
 		update_color(NULL, pref_fg_picture);
+		update_convo_color(TRUE);
 	} else {
 		gtk_color_selection_get_color(GTK_COLOR_SELECTION(GTK_COLOR_SELECTION_DIALOG(bgcseld)->colorsel), color);
 		destroy_colorsel(NULL, (void *)0);
@@ -2525,6 +2526,7 @@
 		bgcolor.green = ((guint16)(color[1]*65535))>>8;
 		bgcolor.blue = ((guint16)(color[2]*65535))>>8;
 		update_color(NULL, pref_bg_picture);
+		update_convo_color(FALSE);
 	}
 }
 
@@ -2688,6 +2690,7 @@
 			fontface[k++] = fontname[i];
 	}
 	fontface[k] = '\0';
+	update_convo_font();
 }
 
 void show_font_dialog(struct conversation *c, GtkWidget *font)