예제 #1
0
파일: callbacks_unix.go 프로젝트: UIKit0/ui
// 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))
}
예제 #2
0
파일: callbacks_unix.go 프로젝트: UIKit0/ui
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)
}
예제 #3
0
파일: common_unix.go 프로젝트: NotBadPad/ui
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)
}