summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-18 14:01:59 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-18 14:01:59 +0200
commitde80d28f8f7b438b3f3eb887c22dd98477a2db62 (patch)
tree08b49f35986c0a36866f0395e18a654cddf43854
parent69580bed0c0d5e07319c63bd66900bc793a8bfa2 (diff)
downloadbiomed-de80d28f8f7b438b3f3eb887c22dd98477a2db62.tar.gz
biomed-de80d28f8f7b438b3f3eb887c22dd98477a2db62.tar.bz2
biomed-de80d28f8f7b438b3f3eb887c22dd98477a2db62.zip
A small help dialog.
-rw-r--r--main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.go b/main.go
index f071df9..090f7db 100644
--- a/main.go
+++ b/main.go
@@ -114,6 +114,14 @@ func (g *GUI) mkMenuBar() *gtk.MenuBar {
helpMenu := gtk.NewMenu()
+ controls := gtk.NewMenuItemWithLabel("Controls")
+ controls.Connect("activate", func() {
+ dlg := gtk.NewMessageDialog(g.window, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, "Click to use selected tool.\nMiddle mouse button to move around.")
+ dlg.Run()
+ dlg.Destroy()
+ })
+ helpMenu.Append(controls)
+
about := gtk.NewMenuItemWithLabel("About")
about.Connect("activate", g.aboutDlg)
helpMenu.Append(about)