aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@helixcode.com>2000-05-11 05:14:18 +0800
committerLarry Ewing <lewing@src.gnome.org>2000-05-11 05:14:18 +0800
commit193eb1ae72eeebc52a7237c59fc525e5355eac86 (patch)
tree49128bbb733f6781402bf5a7edfcc924b4cb6a5b
parent490154795019ac5a7a8fe6276a04e42c03225e35 (diff)
downloadgsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.tar.gz
gsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.tar.zst
gsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.zip
only set the default background color if style is not NULL.
2000-05-10 Larry Ewing <lewing@helixcode.com> * mail-config.c (html_new): only set the default background color if style is not NULL. svn path=/trunk/; revision=2980
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-config.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 848a676a17..ea36a705a7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-10 Larry Ewing <lewing@helixcode.com>
+
+ * mail-config.c (html_new): only set the default background color
+ if style is not NULL.
+
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Removed folder-browser-factory.h since it doesn't
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 9c68ea7931..a59af5dde6 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -69,9 +69,11 @@ html_new (gboolean white)
GTK_SIGNAL_FUNC (html_size_req), NULL);
gtk_html_set_editable (GTK_HTML (html), FALSE);
style = gtk_rc_get_style (html);
- gtk_html_set_default_background_color (GTK_HTML (html),
- white ? &style->white :
- &style->bg[0]);
+ if (style) {
+ gtk_html_set_default_background_color (GTK_HTML (html),
+ white ? &style->white :
+ &style->bg[0]);
+ }
gtk_widget_set_sensitive (html, FALSE);
scrolled = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),