Function

GObjectenum_get_value

Declaration [src]

GEnumValue*
g_enum_get_value (
  GEnumClass* enum_class,
  gint value
)

Description [src]

Returns the GEnumValue for a value.

Parameters

enum_class GEnumClass
 

A GEnumClass.

 The data is owned by the caller of the function.
value gint
 

The value to look up.

Return value

Returns: GEnumValue
 

The GEnumValue for value, or NULL if value is not a member of the enumeration.

 The data is owned by the called function.
 The return value can be NULL.