summaryrefslogtreecommitdiff
path: root/table.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-19 03:24:02 -0600
committerJeff Carr <[email protected]>2025-02-19 17:39:45 -0600
commit6c3726cc97e92bf950bd51895c25d7c471960e8c (patch)
tree17c9ac98a24cfd11e62446b1cdb03bc827b62dd0 /table.go
parentb257b05f7bd4e431f3fa8a1eeec30c73f6eac865 (diff)
ints and strings
Diffstat (limited to 'table.go')
-rw-r--r--table.go10
1 files changed, 9 insertions, 1 deletions
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)
+ }
}
}