示例#1
0
文件: glib.go 项目: mattn/go-gtk
func (v *GObject) HandlerBlock(call_id int) {
	value, found := callback_contexts.Get(call_id)
	if !found {
		return
	}
	context := value.(*CallbackContext)
	c_call_id := C._g_signal_callback_id((*C.callback_info)(context.cbi))
	C.g_signal_handler_block((C.gpointer)(v.Object), c_call_id)
}
示例#2
0
文件: glib.go 项目: vvanpo/gotk3
// HandlerBlock is a wrapper around g_signal_handler_block().
func (v *Object) HandlerBlock(handle SignalHandle) {
	C.g_signal_handler_block(C.gpointer(v.GObject), C.gulong(handle))
}
示例#3
0
func (v *GObject) HandlerBlock(call_id int) {
	c_call_id := C._g_signal_callback_id((*C.callback_info)(callback_contexts[call_id].cbi))
	C.g_signal_handler_block((C.gpointer)(v.Object), c_call_id)
}
示例#4
0
文件: glib.go 项目: jrick/gotk3
// HandlerBlock() is a wrapper around g_signal_handler_block().
func (v *Object) HandlerBlock(callID int) {
	callbackContexts.RLock()
	id := C.cbinfo_get_id((*C.cbinfo)(callbackContexts.s[callID].cbi))
	callbackContexts.RUnlock()
	C.g_signal_handler_block((C.gpointer)(v.GObject), id)
}