From a251da5a9fc8592fceca50a70d9a44f05a6190e3 Mon Sep 17 00:00:00 2001 From: Roi Martin Date: Sun, 20 Aug 2017 00:28:06 +0200 Subject: [PATCH] Minor syntax clean-ups --- gui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.go b/gui.go index fe5cafb..9499d3c 100644 --- a/gui.go +++ b/gui.go @@ -322,7 +322,7 @@ type Manager interface { // The ManagerFunc type is an adapter to allow the use of ordinary functions as // Managers. If f is a function with the appropriate signature, ManagerFunc(f) // is an Manager object that calls f. -type ManagerFunc func(g *Gui) error +type ManagerFunc func(*Gui) error // Layout calls f(g) func (f ManagerFunc) Layout(g *Gui) error { @@ -342,7 +342,7 @@ func (g *Gui) SetManager(managers ...Manager) { // SetManagerFunc sets the given manager function. It deletes all views and // keybindings. -func (g *Gui) SetManagerFunc(manager func(g *Gui) error) { +func (g *Gui) SetManagerFunc(manager func(*Gui) error) { g.SetManager(ManagerFunc(manager)) }