aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-11 21:56:57 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-11 21:56:57 +0200
commitb8591b41fda0567721b024059f9b4497e3d259e4 (patch)
tree9665355768ab119bfd09504f00704cc3ade494dd /dw/layout.cc
parentd3a9a4185e26638c7b6d512b8351d68a8c55c86e (diff)
parenta6cf69ecca7f17838f551a2983e2277440ec3f0d (diff)
merge
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index b30831c7..aa9f05ed 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -246,7 +246,6 @@ void Layout::addWidget (Widget *widget)
canvasHeightGreater = false;
setSizeHints ();
- updateBgColor ();
queueResize ();
}
@@ -609,17 +608,11 @@ void Layout::updateCursor ()
setCursor (style::CURSOR_DEFAULT);
}
-void Layout::updateBgColor ()
+void Layout::setBgColor (style::Color *color)
{
- /* The toplevel widget should always have a defined background color,
- * except at the beginning. Searching a defined background is not
- * necessary. */
- if (topLevel && topLevel->getStyle() &&
- topLevel->getStyle()->backgroundColor)
- bgColor = topLevel->getStyle()->backgroundColor;
- else
- bgColor = NULL;
- view->setBgColor (bgColor);
+ bgColor = color;
+ if (view)
+ view->setBgColor (bgColor);
}
void Layout::resizeIdle ()