summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 4a7481d..44c72fd 100644
--- a/main.go
+++ b/main.go
@@ -38,7 +38,7 @@ func (g *GUI) openWorld(path string) {
dlg.Destroy()
}
- go g.mapw.setRegion(region)
+ go g.mapw.SetRegion(region)
}
func (g *GUI) aboutDlg() {
@@ -209,7 +209,7 @@ func (g *GUI) Init() {
hbox := gtk.NewHBox(false, 0)
- g.mapw = NewMapWidget(g.reportError, g.updateInfo, g.setBusy)
+ g.mapw = NewMapWidget(GUICallbacks{g.reportError, g.updateInfo, g.setBusy})
hbox.PackStart(g.mapw.DArea(), true, true, 3)
sidebar := g.mkSidebar()