aboutsummaryrefslogtreecommitdiff
path: root/dw/image.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-07-03 20:25:18 +0200
committerSebastian Geerken <devnull@localhost>2014-07-03 20:25:18 +0200
commitc92be107921cc075131c73946028c4a51af67759 (patch)
treeceb8c86af7644957afd66f3a3b788efbf32ec4c9 /dw/image.cc
parent732d5e480bec103be3faf4d351b652d156a0de23 (diff)
Widget::getExtremesImpl is now abstract; this way, getExtremes can avoid to call sizeRequest.
Diffstat (limited to 'dw/image.cc')
-rw-r--r--dw/image.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/image.cc b/dw/image.cc
index ae48961f..65ebcdf3 100644
--- a/dw/image.cc
+++ b/dw/image.cc
@@ -216,6 +216,13 @@ void Image::sizeRequestImpl (core::Requisition *requisition)
DBG_OBJ_MSG_END ();
}
+void Image::getExtremesImpl (core::Extremes *extremes)
+{
+ extremes->minWidth = extremes->maxWidth =
+ (buffer ? buffer->getRootWidth () : 0) + boxDiffWidth ();
+ correctExtremes (extremes);
+}
+
void Image::sizeAllocateImpl (core::Allocation *allocation)
{
core::Imgbuf *oldBuffer;