On 31-05-2019 13:58, Ron Tarrant wrote:

On Fri, 31 May 2019 11:41:23 GMT, Ron Tarrant wrote:

(treeviewdynamicfillwithscrolledwindow.exe:10124): Gtk-WARNING **: Allocating size to GtkWindow 0000015ae0d2ae40 without calling gtkwidgetgetpreferred_width/height(). How does the code know the size to allocate?

New info...

I tried doing getPreferredWidth/Height for the Window, the Box, the ScrolledWindow, and the TreeView. Except for the Window, they all report '0' and '0' for minimum and natural. The Window reported '200' and '200,' but making these calls before the setSizeRequest() call made no difference. The error still showed up.

There is a bug report about this GTK warning:

https://bugzilla.gnome.org/show_bug.cgi?id=769566

It was "fixed" by only displaying the message when GTK is build with
debugging enabled:

https://gitlab.gnome.org/GNOME/gtk/commit/eb01ba8573bec47e02c8fc4eaf10e2f7cff522dd

So most likely the windows libraries are build with debugging enabled.

But properly setting the expand and fill parameters in the packStart
call would be the proper fix for this use case.