From 71c137c56b5541b3c049d513ec3dcf1c3502fe08 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Mar 2025 20:05:23 -0600 Subject: stub in widgetpb --- common.go | 2 +- structs.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common.go b/common.go index 0388ac6..6ad2b84 100644 --- a/common.go +++ b/common.go @@ -26,7 +26,7 @@ func (n *Node) Show() *Node { if n.WidgetType == widget.Window { log.Log(CHANGE, "Show() on a hidden window", n.progname) - log.Log(NOW, "TODO: need protobuf in go.wit.com/gui to fix NewWindow()") + log.Log(NOW, "doing TestDraw()", n.progname) n.TestDraw() return n } diff --git a/structs.go b/structs.go index 09fbf1f..a3a1781 100644 --- a/structs.go +++ b/structs.go @@ -4,6 +4,7 @@ import ( "embed" "sync" + "go.wit.com/lib/protobuf/guipb" "go.wit.com/widget" ) @@ -157,8 +158,9 @@ type Node struct { NextH int // if this widget is in a grid, this is the position of a widget - AtW int - AtH int + AtW int + AtH int + widget guipb.Widget } type Widget interface { -- cgit v1.2.3