fix example-gui.

This commit is contained in:
mattn 2012-04-04 01:46:21 +09:00
parent f8ce0ead60
commit 2ec48a2db6

View File

@ -40,7 +40,7 @@ func main() {
hbox := gtk.HBox(false, 1)
dialog.GetVBox().Add(hbox)
label := gtk.Label("username:")
sgroup.Add(label)
sgroup.AddWidget(label)
hbox.Add(label)
username := gtk.Entry()
hbox.Add(username)
@ -48,7 +48,7 @@ func main() {
hbox = gtk.HBox(false, 1)
dialog.GetVBox().Add(hbox)
label = gtk.Label("password:")
sgroup.Add(label)
sgroup.AddWidget(label)
hbox.Add(label)
password := gtk.Entry()
password.SetVisibility(false)