From 3f31751d69ee114076e055468fc42cba3e420a85 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 18 Aug 2013 12:33:55 +0200 Subject: Restructured code. Most non-GUI code was moved out of mapwidget.go --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') 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() -- cgit v1.2.3-54-g00ecf