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 with the index of the item
attribute -- a string with the attribute to query
vtype -- a g:variant-type parameter type with the expected type of the attribute, of nil

Return Value

The g:variant parameter with 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

#2024-12-30