Package: gio

Function gio:menu-model-item-attribute-value

Lambda List

gio:menu-model-item-attribute-value (model index attribute vtype)

Arguments

model -- a g:menu-model object
index -- an integer for the index of the item
attribute -- a string for the attribute to query
vtype -- a g:variant-type parameter type for the expected type of the attribute, of nil

Return Value

The g:variant parameter for the value of the attribute.

Details

Queries the item at position index in model for the attribute specified by attribute. If vtype is not nil then it specifies the expected type of the attribute. If it is nil then any type will be accepted.

If the attribute exists and matches vtype, or if the expected type is unspecified, then the value is returned. If the attribute does not exist, or does not match the expected type then nil is returned.
 

See also

#2025-09-27