in_typelib


Description:

public static bool in_typelib (Type gtype)

Whether gtype is a class in a loaded typelib.

GI.Repository.find_by_gtype is null for a private subclass. Bin.StreamValue.write then aliases the nearest registered parent. A typelib type still has to be registered with Bin.register.

Parameters:

gtype

runtime GType of the instance being written

Returns:

true when the typelib has this GType