From 82a18a1cc4d5c8b1a4c3d030e5d617000a858246 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 15 Aug 2013 23:55:58 +0200 Subject: Preparing for tool usage --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index ba84bdc..04c2850 100644 --- a/main.go +++ b/main.go @@ -17,8 +17,6 @@ type GUI struct { statusContext uint mapw *MapWidget - - tool Tool } func (g *GUI) openWorldDlg() { @@ -214,6 +212,8 @@ func (g *GUI) Init() { g.window.SetDefaultSize(800, 600) g.window.Connect("destroy", g.exitApp) + + g.setTool(NewFillTool()) } func (g *GUI) reportError(msg string) { @@ -245,7 +245,7 @@ func (g *GUI) mkUpdateBiomeFx(rb *gtk.RadioButton, bio mcmap.Biome) func() { } func (g *GUI) setTool(t Tool) { - g.tool = t + g.mapw.SetTool(t) } func (g *GUI) setBiome(bio mcmap.Biome) { -- cgit v1.2.3-54-g00ecf