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
aftersuper
.To get the TreeView/ScrolledWindow to use all the available space, set
expand
andfill
to true in the call topackStart
.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.