
GObject – 2.0 - GTK
GParamSpec encapsulates the metadata required to specify parameters, such as GObject properties. ParamSpecBoolean A GParamSpec derived structure that contains the meta data for boolean properties.
GObject – 2.0: GObject Tutorial - GTK
GObject Tutorial How to define and implement a new GObject. This document focuses on the implementation of a subtype of GObject, for example to create a custom class hierarchy, or to subclass a GTK widget.
GObject.Object - GTK
GObject is the fundamental type providing the common attributes and methods for all object types in GTK, Pango and other libraries based on GObject. The GObject class provides methods for object construction and destruction, property access methods, and signal support.
GObject – 2.0: Type System Concepts - GTK
GObject, and its lower-level type system, GType, are used by GTK and most GNOME libraries to provide: object-oriented C-based APIs and automatic transparent API bindings to other compiled or interpreted languages.
GObject – 2.0: Signals - GTK
If you are connecting handlers to signals and using a GObject instance as your signal handler user data, you should remember to pair calls to g_signal_connect() with calls to g_signal_handler_disconnect() or g_signal_handlers_disconnect_by_func(). While signal handlers are automatically disconnected when the object emitting the signal is ...
GObject.Object.new - GTK
Creates a new instance of a GObject subtype and sets its properties. Construction parameters (see G_PARAM_CONSTRUCT , G_PARAM_CONSTRUCT_ONLY ) which are not explicitly specified are set to their default values.
GObject – 2.0: Types - GTK
The GType API is the foundation of the GObject system. It provides the facilities for registering and managing all fundamental data types, user-defined object and interface types. For type creation and registration purposes, all types fall into one of two categories: static or dynamic.
GObject.Object.get - GTK
gint intval; guint64 uint64val; gchar * strval; GObject * objval; g_object_get (my_object, "int-property", & intval, "uint64-property", & uint64val, "str-property", & strval, "obj-property", & objval, NULL); // Do something with intval, uint64val, strval, objval g_free (strval); g_object_unref (objval);
GObject.Object.unref - GTK
If the pointer to the GObject may be reused in future (for example, if it is an instance variable of another object), it is recommended to clear the pointer to NULL rather than retain a dangling pointer to a potentially invalid GObject instance. Use
GObject.Object.ref - GTK
Reference for GObject.Object.ref. Increases the reference count of object.. Since GLib 2.56, if GLIB_VERSION_MAX_ALLOWED is 2.56 or greater, the type of object will be propagated to the return type (using the GCC typeof() extension), so any casting the caller needs to do on the return type must be explicit.