diff options
author | Sebastian Geerken <devnull@localhost> | 2013-09-12 20:19:27 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-09-12 20:19:27 +0200 |
commit | 76a23c134dfd1d98923830b35a9ee630924b2250 (patch) | |
tree | 6ad58d098a844dbf3696c749a2728f9b2df26e3e /dw/widget.cc | |
parent | 3599a4762e8a62c0c8c32f0e9d9ec3e37730d271 (diff) |
Some clarifications.
Diffstat (limited to 'dw/widget.cc')
-rw-r--r-- | dw/widget.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/dw/widget.cc b/dw/widget.cc index 31c69f4c..766d2500 100644 --- a/dw/widget.cc +++ b/dw/widget.cc @@ -350,9 +350,14 @@ void Widget::drawBox (View *view, style::Style *style, Rectangle *area, allocation.x + x, allocation.y + y, width, height, style, inverse); + /** + * \todo Reference should be the containing block (which will be + * introduced later), not the widget allocation. + */ style::drawBackground (view, layout, &canvasArea, allocation.x + x, allocation.y + y, width, height, - style, inverse, false); + allocation.x, allocation.y, allocation.width, + getHeight (), style, inverse, false); } /** @@ -372,9 +377,14 @@ void Widget::drawWidgetBox (View *view, Rectangle *area, bool inverse) style::drawBorder (view, layout, &canvasArea, allocation.x, allocation.y, allocation.width, getHeight (), style, inverse); + /** + * \todo Reference should be the containing block (which will be + * introduced later), not the widget allocation. + */ style::drawBackground (view, layout, &canvasArea, allocation.x, allocation.y, - allocation.width, getHeight (), style, inverse, - parent == NULL); + allocation.width, getHeight (), allocation.x, + allocation.y, allocation.width, getHeight (), + style, inverse, parent == NULL); } /* |