summaryrefslogtreecommitdiff
path: root/redo/window.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-07 16:51:17 -0400
committerPietro Gagliardi <[email protected]>2014-07-07 16:51:17 -0400
commit0c57837676eba65696a1e8175ff0b59ad1e00c37 (patch)
tree3e6f5ca235547450671180ee3bc339814282c5ee /redo/window.go
parentc0c38ac8f5ded52f0db925ca7ca4bc6efedcb648 (diff)
Made event handler setters return a Request, implemented stubs on GTK+ so I can build a test, and made documentation consistent.
Diffstat (limited to 'redo/window.go')
-rw-r--r--redo/window.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/redo/window.go b/redo/window.go
index 176239b..27160c2 100644
--- a/redo/window.go
+++ b/redo/window.go
@@ -22,11 +22,11 @@ type Window interface {
// Attempting to use a Window after it has been closed results in undefined behavior.
Close() *Request
- // OnClosing registers an event handler that is triggered when the user clicks the Window's close button.
+ // OnClosing creates a Request to register an event handler that is triggered when the user clicks the Window's close button.
// On systems where whole applications own windows, OnClosing is also triggered when the user asks to close the application.
// If this handler returns true, the Window is closed as defined by Close above.
// If this handler returns false, the Window is not closed.
- OnClosing(func(c Doer) bool)
+ OnClosing(func(c Doer) bool) *Request
// TODO SetSize (TODO remove?)
// TODO Center