diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) |