summaryrefslogtreecommitdiff
path: root/mapwidget.go
diff options
context:
space:
mode:
Diffstat (limited to 'mapwidget.go')
-rw-r--r--mapwidget.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/mapwidget.go b/mapwidget.go
index 48ae051..e8b23b3 100644
--- a/mapwidget.go
+++ b/mapwidget.go
@@ -329,6 +329,10 @@ func (mw *MapWidget) movement(ctx *glib.CallbackContext) {
mw.mx1, mw.my1 = mw.mx2, mw.my2
}
+func (mw *MapWidget) Save() {
+ mw.tileCmds <- cmdSave
+}
+
func (mw *MapWidget) buttonChanged(ctx *glib.CallbackContext) {
arg := ctx.Args(0)
bev := *(**gdk.EventButton)(unsafe.Pointer(&arg))