diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
| commit | 982004d05052ef6aadd22dd5c4e7dbca85ab324a (patch) | |
| tree | 517a0f5a5397e6fb886b5e4741aff4fa18ba10d8 /tab_unix.go | |
| parent | 09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff) | |
go fmt. Precursor to bug report filing.
Diffstat (limited to 'tab_unix.go')
| -rw-r--r-- | tab_unix.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tab_unix.go b/tab_unix.go index c73796f..79f7844 100644 --- a/tab_unix.go +++ b/tab_unix.go @@ -12,19 +12,19 @@ import ( import "C" type tab struct { - _widget *C.GtkWidget - container *C.GtkContainer - notebook *C.GtkNotebook + _widget *C.GtkWidget + container *C.GtkContainer + notebook *C.GtkNotebook - tabs []*container + tabs []*container } func newTab() Tab { widget := C.gtk_notebook_new() t := &tab{ - _widget: widget, - container: (*C.GtkContainer)(unsafe.Pointer(widget)), - notebook: (*C.GtkNotebook)(unsafe.Pointer(widget)), + _widget: widget, + container: (*C.GtkContainer)(unsafe.Pointer(widget)), + notebook: (*C.GtkNotebook)(unsafe.Pointer(widget)), } // there are no scrolling arrows by default; add them in case there are too many tabs C.gtk_notebook_set_scrollable(t.notebook, C.TRUE) @@ -40,7 +40,7 @@ func (t *tab) Append(name string, control Control) { defer freegstr(cname) C.gtk_notebook_set_tab_label_text(t.notebook, // unfortunately there does not seem to be a gtk_notebook_set_nth_tab_label_text() - C.gtk_notebook_get_nth_page(t.notebook, C.gint(len(t.tabs) - 1)), + C.gtk_notebook_get_nth_page(t.notebook, C.gint(len(t.tabs)-1)), cname) } |
