Function trinket::init[][src]

pub fn init()
Expand description

Initializes Trinket.

Call this function just after initializing GTK, if you are using [gtk::Application] it means it must be called when the gio::subclass::prelude::ApplicationImpl::startup() signal is emitted.

If Trinket has already been initialized, the function will simply return.

This makes sure translations, and types for the Trinket library are set up properly.