From dcce32583387be7fc4f6cd8c8dea62fd7dc42ecf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 15 Dec 2023 17:18:48 -0600 Subject: make a common.go for the toolkits Signed-off-by: Jeff Carr --- toolkit/andlabs/window.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toolkit/andlabs/window.go') diff --git a/toolkit/andlabs/window.go b/toolkit/andlabs/window.go index ccc523a..f51536b 100644 --- a/toolkit/andlabs/window.go +++ b/toolkit/andlabs/window.go @@ -5,18 +5,18 @@ import ( _ "github.com/andlabs/ui/winmanifest" ) -func (t *andlabsT) MessageWindow(msg1 string, msg2 string) { +func (t *guiWidget) MessageWindow(msg1 string, msg2 string) { ui.MsgBox(t.uiWindow, msg1, msg2) } -func (t *andlabsT) ErrorWindow(msg1 string, msg2 string) { +func (t *guiWidget) ErrorWindow(msg1 string, msg2 string) { ui.MsgBoxError(t.uiWindow, msg1, msg2) } func newWindow(n *node) { - var newt *andlabsT + var newt *guiWidget - newt = new(andlabsT) + newt = new(guiWidget) // menubar bool is if the OS defined border on the window should be used win := ui.NewWindow(n.Name, n.X, n.Y, menubar) -- cgit v1.2.3