示例#1
0
// SetSensitive is a wrapper around gtk_widget_set_sensitive().
func (v *Widget) SetSensitive(sensitive bool) {
	C.gtk_widget_set_sensitive(v.native(), gbool(sensitive))
}
示例#2
0
文件: linux_gtk.go 项目: axet/desktop
func gtk_widget_set_sensitive(item GtkWidget, b bool) {
	C.gtk_widget_set_sensitive(Arg(item), C.bool(Bool2Int[b]))
}