aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
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 /mail/mail-config.c
parent490154795019ac5a7a8fe6276a04e42c03225e35 (diff)
downloadgsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.tar
gsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.tar.gz
gsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.tar.bz2
gsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.tar.lz
gsoc2013-evolution-193eb1ae72eeebc52a7237c59fc525e5355eac86.tar.xz
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
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c8
1 files changed, 5 insertions, 3 deletions
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),