aboutsummaryrefslogtreecommitdiff
path: root/src/web.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-24 23:44:47 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-24 23:44:47 +0200
commita6cf69ecca7f17838f551a2983e2277440ec3f0d (patch)
tree241eb105146d373c235cda587c3e561e6e9e9296 /src/web.cc
parentb66ff3ea295863bebe2d062df0c235891f9a597b (diff)
call layout->setBgColor() from web.cc
Diffstat (limited to 'src/web.cc')
-rw-r--r--src/web.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web.cc b/src/web.cc
index 17302b1c..1b5741ae 100644
--- a/src/web.cc
+++ b/src/web.cc
@@ -61,10 +61,13 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web,
if (Web->flags & WEB_RootUrl) {
/* We have RootUrl! */
+ style::Color *bgColor = style::Color::create (layout, prefs.bg_color);
+ Web->bgColor = bgColor->getColor ();
+ layout->setBgColor (bgColor);
+
/* Set a style for the widget */
StyleEngine styleEngine (layout);
styleEngine.startElement ("body");
- Web->bgColor= styleEngine.backgroundStyle()->backgroundColor->getColor();
dw = (Widget*) a_Mime_set_viewer(Type, Web, Call, Data);
if (dw == NULL)