On Fri, 31 May 2019 13:45:40 +0200, Mike Wey wrote:

On 30-05-2019 22:02, Ron Tarrant wrote:

I did try putting it in a ScrolledWindow, to see if that would clear things up, but I it only showed two lines of the TreeView (with a scrollbar) and spit out a whole other set of errors:

For the errors the fix is the same, call addAttribute after super.

To get the TreeView/ScrolledWindow to use all the available space, set
expand and fill to true in the call to packStart.

packStart(myScrolledWindow, true, true, 0);

Ah! Thanks, Mike. I knew I was missing something.

I'm still getting the getpreferredwidth/height error and it seems to be caused by not knowing the size each rendered font will take up in the display.

And I'm getting a "couldn't load font" error, but that's just a logic problem, so no worries there.