enumToString

fnstring enumToString(gobject.types.GType gEnumType, int value)

Pretty-prints value in the form of the enum’s name.

This is intended to be used for debugging purposes. The format of the output may change in the future.

Parameters

gEnumTypethe type identifier of a #GEnumClass type
valuethe value

Returns

a newly-allocated text string