I have TreeView widget inside ScrolledWindow which is inside a main grid,
and whenever there are enough items in the TreeView for the scroll bar to
appear, I get spammed with the following warnings:
Gtk-WARNING **: Allocating size to __main__+MCVEWindow 0000000004e93b30
without calling gtk_widget_get_preferred_width/height(). How does the code
know the size to allocate?
MCVEWindow is an ApplicationWindow widget which contains aforementioned
The warnings also appear whenever I expand all TreeView items leading me to
believe it may be a layout/resizing issue.
From what we gathered so far, the issue is not reproducible in GTK version
3.18, but it is reproducible in versions 3.22.18 and 3.22.21. I also don't
think it's a bug in my code, but rather in GTK itself although I'm new to
GTK so I'm not quite sure.