GTK 3.22 prints warnings on standard error when expanding tree item at bottom of tree
Steps to reproduce
- Create a tree with some items and nested items, inside a scrolled window.
- Expand a tree item, so that the child items of the tree are partially outside of the tree scroll window.
- Observe that a warning is printed on standard error.
The behaviour can be reproduced with the following snippet: GTK_nested_tree_warnings.cpp
Otherwise, any tree within a scrolled window, with nested items, can be used to observe the problem.
The following type of warning is printed on standard error:
Gtk-WARNING **: Allocating size to GtkWindow 0x682260 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
No warnings are printed on standard error.
I can reproduce this on RHEL 7.4, with GTK 3.22.10 (gtk3-devel-3.22.10-4.el7.x86_64).
I can reproduce this on RHEL 7.4, with GTK 3.22.10 (gtk3-devel-3.22.10-4.el7.x86_64). I cannot reproduce this on RHEL 7.2, with GTK 3.14.13 (gtk3-devel-3.14.13-16.el7.x86_64).
Originally, this was found in Eclipse SDK, see Eclipse bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=533876