// this is what actually connects a signal 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(obj, csig, callback, unsafe.Pointer(sysData)) }
func g_signal_connect_pointer(obj *C.GtkWidget, sig string, callback C.GCallback, p unsafe.Pointer) { csig := C.CString(sig) defer C.free(unsafe.Pointer(csig)) C.gSignalConnect(obj, csig, callback, p) }
func g_signal_connect(object C.gpointer, name string, to C.GCallback, data C.gpointer) { cname := togstr(name) defer freegstr(cname) C.gSignalConnect(object, cname, to, data) }