wlt: toolkit: allow widgets to control new size
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 20:50:38 +0000 (22:50 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 20:50:38 +0000 (22:50 +0200)
commitd69414297cfb806bd69104fefac8f93303ffc492
tree441926f87dd2dfbc608412b08646dc2799deebb9
parent5347c626886eb6acb14d6bb350434083afc63417
wlt: toolkit: allow widgets to control new size

This changes the prepare-resize logic to allow widgets full control of the
new size. The initial size starts at 0 and each widget can increase it.
The last widget should be a catch-all that uses all size that is available
and computes a good new size based on the requirements that the previous
widgets provided.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/wlt_terminal.c
src/wlt_theme.c
src/wlt_toolkit.c
src/wlt_toolkit.h