summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.go b/main.go
index 13f9ccf..ebe99a5 100644
--- a/main.go
+++ b/main.go
@@ -87,6 +87,16 @@ func (g *GUI) mkMenuBar() *gtk.MenuBar {
fileMenuItem.SetSubmenu(fileMenu)
menubar.Append(fileMenuItem)
+ editMenu := gtk.NewMenu()
+
+ undo := gtk.NewMenuItemWithLabel("Undo")
+ undo.Connect("activate", g.undo)
+ editMenu.Append(undo)
+
+ editMenuItem := gtk.NewMenuItemWithLabel("Edit")
+ editMenuItem.SetSubmenu(editMenu)
+ menubar.Append(editMenuItem)
+
helpMenu := gtk.NewMenu()
about := gtk.NewMenuItemWithLabel("About")
@@ -217,6 +227,10 @@ func (g *GUI) showbiomesToggled() {
fmt.Printf("Show biomes: %v\n", g.showbiomes.GetActive())
}
+func (g *GUI) undo() {
+ fmt.Println("Undo")
+}
+
func (g *GUI) Show() {
g.window.ShowAll()
}