Exemple #1
0
func g_signal_connect_popup(item GtkWidget, fn *GSourceFunc) {
	n := C.CString("popup-menu")
	defer C.free(unsafe.Pointer(n))
	i := C.g_signal_connect_data(Arg(item), n, Arg(C.signal_popup_menu), fn.Arg(), NULL, C.int(0))
	if i <= 0 {
		panic("unable to connect")
	}
}
Exemple #2
0
func g_signal_connect_navigation_policy_decision_requested(item GtkWidget, fn *GSourceFunc) {
	n := C.CString("new-window-policy-decision-requested")
	defer C.free(unsafe.Pointer(n))
	i := C.g_signal_connect_data(Arg(item), n, Arg(C.signal_navigation_policy_decision_requested), fn.Arg(), NULL, C.int(0))
	if i <= 0 {
		panic("unable to connect")
	}
}
Exemple #3
0
func g_signal_connect_focus_out(item GtkWidget, fn *GSourceFunc) {
	n := C.CString("focus-out-event")
	defer C.free(unsafe.Pointer(n))
	i := C.g_signal_connect_data(Arg(item), n, Arg(C.signal_focus_out), fn.Arg(), NULL, C.int(0))
	if i <= 0 {
		panic("unable to connect")
	}
}
Exemple #4
0
func g_signal_connect_activate(item GtkWidget, fn *GSourceFunc) {
	n := C.CString("activate")
	defer C.free(unsafe.Pointer(n))
	i := C.g_signal_connect_data(Arg(item), n, Arg(C.signal_activate), Arg(fn), NULL, C.int(0))
	if i <= 0 {
		panic("unable to connect")
	}
}