Method

GObjectObjectget_data

Declaration

gpointer
g_object_get_data (
  GObject* object,
  const gchar* key
)

Description

Gets a named field from the objects table of associations (see g_object_set_data()).

Parameters

key const gchar*
 

Name of the key for that association.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: gpointer
 

The data if found, or NULL if no such data exists.