summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index 107ec8f..42135af 100644
--- a/main.go
+++ b/main.go
@@ -83,6 +83,7 @@ func (g *GUI) mkMenuBar() *gtk.MenuBar {
}
save := gtk.NewMenuItemWithLabel("Save")
+ save.Connect("activate", g.save)
fileMenu.Append(save)
quit := gtk.NewMenuItemWithLabel("Quit")
@@ -116,6 +117,10 @@ func (g *GUI) mkMenuBar() *gtk.MenuBar {
return menubar
}
+func (g *GUI) save() {
+ g.mapw.Save()
+}
+
func (g *GUI) mkQuickOpen() (*gtk.Menu, bool) {
maps := allMaps()
if (maps == nil) || (len(maps) == 0) {