From 6c3726cc97e92bf950bd51895c25d7c471960e8c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 19 Feb 2025 03:24:02 -0600 Subject: ints and strings --- table.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'table.go') diff --git a/table.go b/table.go index 35d490a..ca83c82 100644 --- a/table.go +++ b/table.go @@ -116,12 +116,20 @@ func makeTableWidgets(pb *guipb.Table) { pbwidget := new(guipb.Widget) pbwidget.Id = int64(label.id) pbwidget.Name = v - r.WidgetS = append(r.WidgetS, pbwidget) + r.Widgets = append(r.Widgets, pbwidget) log.Info("gui: added new WidgetS", pbwidget) } } for i, r := range pb.IntRows { log.Info("gui: got int row:", i, r.Header, r.Vals) + for _, v := range r.Vals { + label := addNode() + pbwidget := new(guipb.Widget) + pbwidget.Id = int64(label.id) + pbwidget.Size = v + r.Widgets = append(r.Widgets, pbwidget) + log.Info("gui: added new int", pbwidget) + } } } -- cgit v1.2.3