From be6b2bbe76f9e330d09f5df6d0f261369627df37 Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Sat, 13 Apr 2024 23:31:03 -0700 Subject: [PATCH] more renaming of core packages --- slboolview/slboolview.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/slboolview/slboolview.go b/slboolview/slboolview.go index 4f36a66..4cbae65 100644 --- a/slboolview/slboolview.go +++ b/slboolview/slboolview.go @@ -5,22 +5,22 @@ package slboolview import ( + "cogentcore.org/core/core" "cogentcore.org/core/events" - "cogentcore.org/core/gi" - "cogentcore.org/core/giv" - "cogentcore.org/core/laser" + "cogentcore.org/core/reflectx" + "cogentcore.org/core/views" "github.com/emer/gosl/v2/slbool" ) func init() { - giv.AddValue(slbool.Bool(0), func() giv.Value { + views.AddValue(slbool.Bool(0), func() views.Value { return &BoolValue{} }) } // BoolValue presents a checkbox for a boolean type BoolValue struct { - giv.ValueBase[*gi.Switch] + views.ValueBase[*core.Switch] } func (v *BoolValue) Config() { @@ -30,7 +30,7 @@ func (v *BoolValue) Config() { } func (v *BoolValue) Update() { - npv := laser.NonPtrValue(v.Value) + npv := reflectx.NonPtrValue(v.Value) sb, ok := npv.Interface().(slbool.Bool) if ok { v.Widget.SetChecked(sb.IsTrue())