subclass::[−][src] types:: register_type
pub fn register_type<T: ObjectSubclass>() -> Type
glib::Type ID for
This must be called only once and will panic on a second call.
object_subclass! macro will create a
type_() function around this, which will
ensure that it’s only ever called once.