GVariant* g_menu_model_get_item_attribute_value ( GMenuModel* model, gint item_index, const gchar* attribute, const GVariantType* expected_type )
Queries the item at position
model for the attribute
expected_type is non-
NULL then it specifies the expected type of
the attribute. If it is
NULL then any type will be accepted.
If the attribute exists and matches
expected_type (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
NULL is returned.
Available since: 2.32
The index of the item.
The attribute to query.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.
The expected type of the attribute, or
The argument can be
The data is owned by the caller of the method.
The value of the attribute.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|
|The return value can be |