Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

Interface Gio.Initable

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GInitable
Interface : Initable
Implementations: Gio.CharsetConverter, Gio.DBusConnection, Gio.DBusProxy, Gio.DBusServer, Gio.Socket
GInitable is implemented by objects that can fail during
initialization. If an object implements this interface the
g_initable_init() function must be called as the first thing
after construction. If g_initable_init() is not called, or if
it returns an error, all further operations on the object
should fail, generally with a G_IO_ERROR_NOT_INITIALIZED error.
Users of objects implementing this are not intended to use
the interface method directly, instead it will be used automatically
in various ways. For C applications you generally just call
g_initable_new() directly, or indirectly via a foo_thing_new() wrapper.
This will call g_initable_init() under the cover, returning NULL and
setting a GError on failure (at which point the instance is
unreferenced).
For bindings in languages where the native constructor supports
exceptions the binding could check for objects implemention GInitable
during normal construction and automatically initialize them, throwing
an exception on failure.
Properties
None
Methods / Constructors
Method / Constructor Defined By
Events
None
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:22 GMT+0800 (HKT)