summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-18 12:33:55 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-18 12:33:55 +0200
commit3f31751d69ee114076e055468fc42cba3e420a85 (patch)
tree6d27993a5605820153f4cb69f89e985d6e25ad84 /main.go
parent3fadcc33f7d2593a0c7630152d29bb327d7d66bb (diff)
downloadbiomed-3f31751d69ee114076e055468fc42cba3e420a85.tar.gz
biomed-3f31751d69ee114076e055468fc42cba3e420a85.tar.bz2
biomed-3f31751d69ee114076e055468fc42cba3e420a85.zip
Restructured code.
Most non-GUI code was moved out of mapwidget.go
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()