summaryrefslogtreecommitdiff
path: root/redo/controls_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-07 22:46:23 -0400
committerPietro Gagliardi <[email protected]>2014-07-07 22:46:23 -0400
commitd874148760328786c9d12f871a27b97be0774a6d (patch)
tree0ab7bc04bcf57e47bcb34209b8b731ec81039cc0 /redo/controls_unix.go
parentdccf548ffa64702bc058d7d8288127212b8bdce0 (diff)
Fixed most compilation errors and added GTK+ string helper functions to common_unix.go.
Diffstat (limited to 'redo/controls_unix.go')
-rw-r--r--redo/controls_unix.go12
1 files changed, 6 insertions, 6 deletions
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
}