Beispiel #1
0
// 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))
}
Beispiel #2
0
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)
}
Beispiel #3
0
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)
}