GIRepository.BaseInfo g_irepository_find_by_gtype GIRepository * self GType gtype find_by_gtype @accepts(GType) @returns(GIRepository.BaseInfo) def find_by_gtype(gtype)

Searches all loaded namespaces for a particular GType. Note that in order to locate the metadata, the namespace corresponding to the type must first have been loaded. There is currently no mechanism for determining the namespace which corresponds to an arbitrary GType - thus, this function will operate most reliably when you know the GType to originate from be from a loaded namespace.

gtype :

GType to search for

Returns :

GIRepository.BaseInfo representing metadata about @type, or None