changeset 716:0995382d0c46

[gaim-migrate @ 726] got the default colors and fonts to take effect in buddy chats committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Fri, 18 Aug 2000 03:39:25 +0000
parents 58106806ac2b
children d7c39f12eb89
files src/buddy_chat.c src/gtkhtml.c
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy_chat.c	Fri Aug 18 00:21:53 2000 +0000
+++ b/src/buddy_chat.c	Fri Aug 18 03:39:25 2000 +0000
@@ -686,6 +686,18 @@
 
 	gtk_signal_connect(GTK_OBJECT(win), "destroy", GTK_SIGNAL_FUNC(close_callback),b);
 
+	b->font_dialog = NULL;
+	b->color_dialog = NULL;	
+	b->smiley_dialog = NULL;
+	b->link_dialog = NULL;
+	b->log_dialog = NULL;
+	sprintf(b->fontface, "%s", fontface);
+	b->hasfont = 0;
+	b->bgcol = bgcolor;
+	b->hasbg = 0;
+	b->fgcol = fgcolor;
+	b->hasfg = 0;
+	
 	gtk_widget_realize(win);
 	aol_icon(win->window);
 
--- a/src/gtkhtml.c	Fri Aug 18 00:21:53 2000 +0000
+++ b/src/gtkhtml.c	Fri Aug 18 03:39:25 2000 +0000
@@ -1840,7 +1840,9 @@
 	if (hb->type == HTML_BIT_TEXT)
 	{
 
-		if (!strlen(hb->text))
+/*		if (!strlen(hb->text))
+			return;*/
+		if (!(hb->text))
 			return;
 
 		mypos = g_list_index(html->html_bits, hb);