GtkScrolledWindow: Bug 766569 - Make propagation of natural child sizes optional

Desktop / GNOME / GTK - Tristan Van Berkom [codethink.co.uk] - 31 August 2016 13:44 UTC

Making propagation of child natural sizes mandatory (or default, even) was evidently a mistake as this causes dynamic content in a scrolled window to resize it's parent when the scrolled window is competing for space with an adjacent widget.

This patch instead adds API to control whether natural width and height of the child should be propagated through the scrolled windows size requests.

0984d16 GtkScrolledWindow: Bug 766569 - Make propagation of natural child sizes optional
docs/reference/gtk/gtk3-sections.txt | 4 +
gtk/gtkscrolledwindow.c | 178 ++++++++++++++++++++++++++++++++--
gtk/gtkscrolledwindow.h | 12 +++
3 files changed, 184 insertions(+), 10 deletions(-)

Upstream: git.gnome.org


  • Share