Virtual Method

GtkBuilderget_type_from_name

since: 2.12

Declaration [src]

GType
get_type_from_name (
  GtkBuilder* builder,
  const char* type_name
)

Description [src]

Looks up a type by name, using the virtual function that GtkBuilder has for that purpose. This is mainly used when implementing the GtkBuildable interface on a type.

Available since: 2.12

Parameters

type_name

Type: const char*

Type name to lookup.

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

Return value

Type: GType

The GType found for type_name or #G_TYPE_INVALID if no type was found.