get_property


Description:

public void get_property (string property_name, ref Value value)

Gets a property of an object.

The value can be:

  • an empty Value initialized by g_value_init, which will be automatically initialized with the expected type of the property (since GLib 2.60)
  • a Value initialized with the expected type of the property
  • a Value 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 unset.

Note that get_property is really intended for language bindings, @get is much more convenient for C programming.

Parameters:

this

a Object

property_name

the name of the property to get

value

return location for the property value