From de80d28f8f7b438b3f3eb887c22dd98477a2db62 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 18 Aug 2013 14:01:59 +0200 Subject: A small help dialog. --- main.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- cgit v1.2.3-70-g09d2