+void eWidgetDesktop::setBackgroundColor(gColor col)
+{
+ m_background_color = col;
+
+ /* if there's something visible from the background, redraw it with the new color. */
+ if (m_dc && m_background_region.valid() && !m_background_region.empty())
+ {
+ /* todo: split out "setBackgroundColor / clear"... maybe? */
+ gPainter painter(m_dc);
+ painter.resetClip(m_background_region);
+ painter.setBackgroundColor(m_background_color);
+ painter.clear();
+ }
+}
+