summaryrefslogtreecommitdiff
path: root/dw/widget.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-22 21:57:56 +0200
committerSebastian Geerken <devnull@localhost>2014-09-22 21:57:56 +0200
commitafbbb4180fd2f4ab7bc534811ebfc0ede00d8a93 (patch)
tree1bf879bee5ec0f91c89312ae7d4175ca51ebdc14 /dw/widget.hh
parent6d7df83ccc6d259dbdc2c35b99c9d9d5507fae68 (diff)
Cleaned up: Style::box*() -> Widget::box*().
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index fb3eebf2..46fdf856 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -180,10 +180,8 @@ protected:
Allocation allocation;
inline int getHeight () { return allocation.ascent + allocation.descent; }
- inline int getContentWidth() { return allocation.width
- - style->boxDiffWidth (); }
- inline int getContentHeight() { return getHeight ()
- - style->boxDiffHeight (); }
+ inline int getContentWidth() { return allocation.width - boxDiffWidth (); }
+ inline int getContentHeight() { return getHeight () - boxDiffHeight (); }
Layout *layout;