Converts an enum value to its string representation.
If the enum is a g_type_flags the function returns a comma-separated list of matching values. If the value has no corresponding string representation, it is converted to a number. For enums it is converted to a decimal number, for flags to an (unsigned) hex number.
type |
the gtype of the enum |
value |
the value to be translated |
a newly allocated string or null |