From 43b3f1c2a8e62d3fa583af3ad5dde5f98daadc7e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 10 Jun 2014 09:55:14 -0400 Subject: Partial go fmt. Will do the rest over the next few commits. While I'm not too happy about it, everyone else uses go fmt, and pull requests will be more convenient if I just do it. (Also do it now, because when I change the Windows backend things are going to change...) --- window.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'window.go') diff --git a/window.go b/window.go index e65d55d..02b33e9 100644 --- a/window.go +++ b/window.go @@ -12,25 +12,25 @@ type Window struct { // Closing gets a message when the user clicks the window's close button. // You cannot change it once the Window has been created. // If you do not respond to this signal, nothing will happen; regardless of whether you handle the signal or not, the window will not be closed. - Closing chan struct{} - - lock sync.Mutex - created bool - sysData *sysData - initTitle string - initWidth int - initHeight int - shownOnce bool + Closing chan struct{} + + lock sync.Mutex + created bool + sysData *sysData + initTitle string + initWidth int + initHeight int + shownOnce bool } // NewWindow allocates a new Window with the given title and size. The window is not created until a call to Create() or Open(). func NewWindow(title string, width int, height int) *Window { return &Window{ - sysData: mksysdata(c_window), - initTitle: title, - initWidth: width, - initHeight: height, - Closing: newEvent(), + sysData: mksysdata(c_window), + initTitle: title, + initWidth: width, + initHeight: height, + Closing: newEvent(), } } -- cgit v1.2.3