Declaration [src]

g_enum_to_string (
  GType g_enum_type,
  gint value

Description [src]

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.

Available since:2.54


g_enum_type GType

The type identifier of a GEnumClass type.

value gint

The value.

Return value

Returns: gchar*

A newly-allocated text string.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.