From 0c57837676eba65696a1e8175ff0b59ad1e00c37 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 7 Jul 2014 16:51:17 -0400 Subject: Made event handler setters return a Request, implemented stubs on GTK+ so I can build a test, and made documentation consistent. --- redo/controls.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'redo/controls.go') diff --git a/redo/controls.go b/redo/controls.go index 3c750cb..bc4f823 100644 --- a/redo/controls.go +++ b/redo/controls.go @@ -15,15 +15,15 @@ type Control interface { type Button interface { Control - // OnClicked sets the event handler for when the Button is clicked. - OnClicked(func(d Doer)) + // OnClicked creates a Request to set the event handler for when the Button is clicked. + OnClicked(func(d Doer)) *Request - // Text and SetText are Requests that get and set the Button's label text. + // Text and SetText creates a Request that get and set the Button's label text. Text() *Request SetText(text string) *Request } -// NewButton returns a Request to create a new Button with the given label text. +// NewButton creates a Request to create a new Button with the given label text. func NewButton(text string) *Request { return newButton(text) } -- cgit v1.2.3