ObjectG.getProperty

Gets a property of an object.

The value can be:

  • an empty #GValue initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
  • a #GValue initialized with the expected type of the property
  • a #GValue initialized with a type to which the expected type of the property can be transformed

In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling gobject.value.Value.unset.

Note that gobject.object.ObjectG.getProperty is really intended for language bindings, gobject.object.ObjectG.get is much more convenient for C programming.

  1. T getProperty(string propertyName)
  2. void getProperty(string propertyName, gobject.value.Value value)
    class ObjectG
    void
    getProperty

Parameters

propertyName string

the name of the property to get

value gobject.value.Value

return location for the property value