From 01ccc633dce5cf9880bebe5f4ffe655386b73a34 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 3 Nov 2013 15:36:19 +0100 Subject: Started working on the biome info editor --- main.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'main.go') 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) -- cgit v1.2.3-54-g00ecf