summaryrefslogtreecommitdiff
path: root/callbacks_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-01 16:30:38 -0400
committerPietro Gagliardi <[email protected]>2014-04-01 16:30:38 -0400
commit81153617dcfd1e30e75b7adbe29967088fdea410 (patch)
treeccf79e7627e7c02674a12f74a2e216b443b1bd88 /callbacks_unix.go
parenta003ff62d518dcd5bfedb219ecae26fe89ae9af3 (diff)
Got rid of gtkWidget and changed to using *C.GtkWidget everywhere. This gets rid of some of the casting functions and invocations of said functions, and only adds sysdata_unix.go to the cgo list.
Diffstat (limited to 'callbacks_unix.go')
-rw-r--r--callbacks_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/callbacks_unix.go b/callbacks_unix.go
index 5c7afc3..e34db4c 100644
--- a/callbacks_unix.go
+++ b/callbacks_unix.go
@@ -70,10 +70,10 @@ var button_clicked_callback = C.GCallback(C.our_button_clicked_callback)
type callbackMap map[string]C.GCallback
// this is what actually connects a signal
-func g_signal_connect(obj *gtkWidget, sig string, callback C.GCallback, sysData *sysData) {
+func g_signal_connect(obj *C.GtkWidget, sig string, callback C.GCallback, sysData *sysData) {
csig := C.CString(sig)
defer C.free(unsafe.Pointer(csig))
- C.gSignalConnect(togtkwidget(obj), csig, callback, unsafe.Pointer(sysData))
+ C.gSignalConnect(obj, csig, callback, unsafe.Pointer(sysData))
}
// there are two issues we solve here: