summaryrefslogtreecommitdiff
path: root/tab_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-02 10:05:53 -0400
committerPietro Gagliardi <[email protected]>2014-10-02 10:05:53 -0400
commit982004d05052ef6aadd22dd5c4e7dbca85ab324a (patch)
tree517a0f5a5397e6fb886b5e4741aff4fa18ba10d8 /tab_windows.go
parent09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff)
go fmt. Precursor to bug report filing.
Diffstat (limited to 'tab_windows.go')
-rw-r--r--tab_windows.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/tab_windows.go b/tab_windows.go
index 5aabd8d..05d75d0 100644
--- a/tab_windows.go
+++ b/tab_windows.go
@@ -16,16 +16,16 @@ We'll create a dummy window using the pre-existing Window window class for each
*/
type tab struct {
- _hwnd C.HWND
- tabs []*container
+ _hwnd C.HWND
+ tabs []*container
}
func newTab() Tab {
hwnd := C.newControl(C.xWC_TABCONTROL,
- C.TCS_TOOLTIPS | C.WS_TABSTOP,
- 0) // don't set WS_EX_CONTROLPARENT here; see uitask_windows.c
+ C.TCS_TOOLTIPS|C.WS_TABSTOP,
+ 0) // don't set WS_EX_CONTROLPARENT here; see uitask_windows.c
t := &tab{
- _hwnd: hwnd,
+ _hwnd: hwnd,
}
C.controlSetControlFont(t._hwnd)
C.setTabSubclass(t._hwnd, unsafe.Pointer(t))
@@ -38,7 +38,7 @@ func (t *tab) Append(name string, control Control) {
t.tabs = append(t.tabs, c)
// initially hide tab 1..n controls; if we don't, they'll appear over other tabs, resulting in weird behavior
if len(t.tabs) != 1 {
- t.tabs[len(t.tabs) - 1].hide()
+ t.tabs[len(t.tabs)-1].hide()
}
C.tabAppend(t._hwnd, toUTF16(name))
}
@@ -58,7 +58,7 @@ func tabChanged(data unsafe.Pointer, new C.LRESULT) {
//export tabTabHasChildren
func tabTabHasChildren(data unsafe.Pointer, which C.LRESULT) C.BOOL {
t := (*tab)(data)
- if len(t.tabs) == 0 { // currently no tabs
+ if len(t.tabs) == 0 { // currently no tabs
return C.FALSE
}
if t.tabs[int(which)].nchildren > 0 {