From d874148760328786c9d12f871a27b97be0774a6d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 7 Jul 2014 22:46:23 -0400 Subject: Fixed most compilation errors and added GTK+ string helper functions to common_unix.go. --- redo/controls_unix.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'redo/controls_unix.go') diff --git a/redo/controls_unix.go b/redo/controls_unix.go index a091488..008888f 100644 --- a/redo/controls_unix.go +++ b/redo/controls_unix.go @@ -13,15 +13,15 @@ type widgetbase struct { widget *C.GtkWidget } -func newWidget(w *C.GtkWidget) *widget { - return &widget{ +func newWidget(w *C.GtkWidget) *widgetbase { + return &widgetbase{ widget: w, } } type button struct { *widgetbase - button *C.GtkButton + button *C.GtkButton } func newButton(text string) *Request { @@ -32,15 +32,15 @@ func newButton(text string) *Request { defer freegstr(ctext) widget := C.gtk_button_new_with_label(ctext) c <- &button{ - widget: newWidget(widget), - button: (*C.GtkButton)(unsafe.Pointer(widget)), + widgetbase: newWidget(widget), + button: (*C.GtkButton)(unsafe.Pointer(widget)), } }, resp: c, } } -func (b *Button) OnClicked(func e(c Doer)) *Request { +func (b *button) OnClicked(e func(c Doer)) *Request { // TODO return nil } -- cgit v1.2.3