MenuItem.getAttributeValue
glib.variant.Variant getAttributeValue(string attribute, glib.variant_type.VariantType expectedType = null)Queries the named attribute on menu_item.
If expected_type is specified and the attribute does not have this type, null is returned. null is also returned if the attribute simply does not exist.
Parameters
attribute | the attribute name to query |
expectedType | the expected type of the attribute |
Returns
the attribute value, or null