summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/zz_test.go b/zz_test.go
index 6caf95f..d35ba1a 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -11,10 +11,11 @@ func TestIt(t *testing.T) {
Quit()
return true
})
- c := NewEditableCombobox()
- c.Append("Item 1")
- c.Append("Item 2")
- w.SetChild(c)
+ e := NewEntry()
+ e.OnChanged(func(*Entry) {
+ w.SetTitle(e.Text())
+ })
+ w.SetChild(e)
w.Show()
})
if err != nil {