Gtk.Builder.prototype.get_type_from_name

function get_type_from_name(type_name:String):GType {
    // Gjs wrapper for gtk_builder_get_type_from_name()
}

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

Since 2.12

type_name

type name to lookup

Returns

the GLib.Type found for type_name or #G_TYPE_INVALID if no type was found