From 982004d05052ef6aadd22dd5c4e7dbca85ab324a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 2 Oct 2014 10:05:53 -0400 Subject: go fmt. Precursor to bug report filing. --- tab_unix.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tab_unix.go') 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) } -- cgit v1.2.3