diff options
| author | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
| commit | 8dbf5a09097b7868e9218bf98716c57eac998a10 (patch) | |
| tree | ab3bdfeaf5a59a55de9d2a6661d2d824090491e5 /toolkit/andlabs/tab.go | |
| parent | f3bb68396afa7452ecf1c8d4744c825a9d81057c (diff) | |
lots cleaner code between the pluginv0.6.1
Queue() around SetText is helping userspace crashing
merge forceDump(bool) into Dump()
debugging output configuration is pretty clean
keep cutting down duplicate things
--gui-verbose flag works
make label "standard" code
add debug.FreeOSMemory()
move the GO language internals to display in the GUI
update push to do tags and go to github.com/wit-go/
remove the other license file
it might be confusing golang.org and github
proper WidgetType
added a Quit() button
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/tab.go')
| -rw-r--r-- | toolkit/andlabs/tab.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/andlabs/tab.go b/toolkit/andlabs/tab.go index f9085b4..995bbbd 100644 --- a/toolkit/andlabs/tab.go +++ b/toolkit/andlabs/tab.go @@ -33,7 +33,7 @@ func (t *andlabsT) newTab(name string) *andlabsT { if (t.uiTab == nil) { // this means you have to make a new tab log(debugToolkit, "gui.toolkit.NewTab() GOOD. This should be the first tab:", name) - newt = newTab(t.uiWindow, name) + newt = rawTab(t.uiWindow, name) t.uiTab = newt.uiTab } else { // this means you have to append a tab @@ -44,9 +44,9 @@ func (t *andlabsT) newTab(name string) *andlabsT { newt.Name = name log(debugToolkit, "t:") - t.Dump() + t.Dump(debugToolkit) log(debugToolkit, "newt:") - newt.Dump() + newt.Dump(debugToolkit) return newt } @@ -62,7 +62,7 @@ func tabSetMargined(tab *ui.Tab) { } } -func newTab(w *ui.Window, name string) *andlabsT { +func rawTab(w *ui.Window, name string) *andlabsT { var t andlabsT log(debugToolkit, "gui.toolkit.NewTab() ADD", name) @@ -118,7 +118,7 @@ func (t *andlabsT) appendTab(name string) *andlabsT { return &newT } -func NewTab(parentW *toolkit.Widget, w *toolkit.Widget) { +func newTab(parentW *toolkit.Widget, w *toolkit.Widget) { var newt *andlabsT log(debugToolkit, "gui.andlabs.NewTab()", w.Name) |
