summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
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) {