summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.go b/main.go
index 75409e1..e4c3767 100644
--- a/main.go
+++ b/main.go
@@ -111,8 +111,13 @@ func (g *GUI) mkMenuBar() *gtk.MenuBar {
confbiomes := gtk.NewMenuItemWithLabel("Configure Biomes")
confbiomes.Connect("activate", func() {
- // TODO: Display awesome biome editor dialog thing.
- fmt.Println("(...)")
+ ed := NewBiomeInfoEditor(g.biomes)
+ rv := ed.Run()
+ ed.Destroy()
+ if rv == gtk.RESPONSE_OK {
+ g.biomes = ed.Biomes()
+ g.updateBiomeInfo()
+ }
})
prefMenu.Append(confbiomes)