Beispiel #1
0
func issue(f *func()) {
	C.gdk_threads_add_idle(C.GSourceFunc(C.xdoissue), C.gpointer(unsafe.Pointer(f)))
}
Beispiel #2
0
func gdk_threads_add_idle(idleop *gtkIdleOp) {
	C.gdk_threads_add_idle(C.GCallback(C.our_idle_callback),
		C.gpointer(unsafe.Pointer(idleop)))
}
Beispiel #3
0
/*
A wrapper for the common usage of gdk_threads_add_idle_full()
assigning the default priority, #G_PRIORITY_DEFAULT_IDLE.

See gdk_threads_add_idle_full().
*/
func ThreadsAddIdle(function C.GSourceFunc, data unsafe.Pointer) (return__ uint) {
	var __cgo__return__ C.guint
	__cgo__return__ = C.gdk_threads_add_idle(function, (C.gpointer)(data))
	return__ = uint(__cgo__return__)
	return
}