diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-08-18 14:01:59 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-08-18 14:01:59 +0200 |
commit | de80d28f8f7b438b3f3eb887c22dd98477a2db62 (patch) | |
tree | 08b49f35986c0a36866f0395e18a654cddf43854 | |
parent | 69580bed0c0d5e07319c63bd66900bc793a8bfa2 (diff) | |
download | biomed-de80d28f8f7b438b3f3eb887c22dd98477a2db62.tar.gz biomed-de80d28f8f7b438b3f3eb887c22dd98477a2db62.tar.bz2 biomed-de80d28f8f7b438b3f3eb887c22dd98477a2db62.zip |
A small help dialog.
-rw-r--r-- | main.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |