GVariant* g_menu_item_get_attribute_value ( GMenuItem* menu_item, const gchar* attribute, const GVariantType* expected_type )
Queries the named
expected_type is specified and the attribute does not have this
NULL is returned.
NULL is also returned if the attribute
simply does not exist.
Available since: 2.34
The attribute name 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.
The argument can be
The data is owned by the caller of the method.
The attribute value, or
|The caller of the method takes ownership of the data, and is responsible for freeing it.|
|The return value can be |